Method | Description | |
---|---|---|
__construct ( ) | Get things going | |
__set ( $key, $value ) | Set a property | |
build_email ( $message ) : mixed | void | Build the final email. | |
get_content_type ( ) | Get the email content type | |
get_from_address ( ) | Get the email from address | |
get_from_name ( ) | Get the email from name | |
get_headers ( ) | Get the email headers | |
get_heading ( ) | Get the header text for the email | |
get_template ( ) | Get the enabled email template | |
get_templates ( ) | Retrieve email templates | |
parse_tags ( $content ) : mixed | Parse email template tags | |
send ( string $to, string $subject, string $message, string | array $attachments = '' ) : boolean | Send the email | |
send_after ( ) | Remove filters / actions after the email is sent | |
send_before ( ) | Add filters / actions before the email is sent | |
text_to_html ( $message ) |
Converts text to formatted HTML. This is primarily for turning line breaks into and |
public build_email ( $message ) : mixed | void | ||
$message | ||
return | mixed | void |
public parse_tags ( $content ) : mixed | ||
$content | ||
return | mixed |
public send ( string $to, string $subject, string $message, string | array $attachments = '' ) : boolean | ||
$to | string | The To address to send to. |
$subject | string | The subject line of the email to send. |
$message | string | The body of the email to send. |
$attachments | string | array | Attachments to the email in a format supported by wp_mail() |
return | boolean |
and
tags.
public text_to_html ( $message ) |