LLMS_Email
Email Base Class
Description Description
Source Source
File: includes/emails/class.llms.email.php
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Always supply a from address even if the option is empty. |
3.30.3 | Explicitly define class properties. |
1.0.0 | Introduced. |
Methods Methods
- __construct — Constructor Sets up data needed to generate email content
- add_attachment — Add an attachment to the email
- add_header — Add a single header to the email headers array
- add_merge_data — Add merge data that will be used in the email
- add_recipient — Add a single recipient for sending to, cc, or bcc
- add_recipients — Add multiple recipients
- format_string — Format string method
- get_attachments — Get attachments
- get_body — Get the body content of the email
- get_content — Get email content
- get_content_html — Get the HTML email content
- get_content_type — Get the content type
- get_from_address — Get from email option data
- get_from_name — Get from name option data
- get_headers — Get email headers
- get_heading — Get the text of the email "heading"
- get_recipient — Get recipient email address
- get_subject — Get email subject
- init — Initializer Children can configure the email in this function called by the __construct() function
- send — Send email
- set_body — Set the body for the email
- set_content_type — set the content_type for the email
- set_heading — set the heading for the email
- set_id — Set the ID of the email
- set_subject — set the subject for the email