Class: \Conifer\Notifier\EmailNotifier (abstract)
Class for emailing WordPress admins
Visibility | Function |
---|---|
public | notify(mixed $args)</strong> : void Alias of notify_html |
public | notify_html(\string $subject, \string $message, array $headers=array())</strong> : bool whether the messages were sent successfully Send an HTML notification email |
public | notify_plaintext(\string $subject, \string $message, array $headers=array())</strong> : bool whether the messages were sent successfully Send a plaintext notification email |
public | send_html_message(array/string $to, \string $subject, \string $message, array $headers=array())</strong> : bool whether the messages were sent successfully Send a UTF-8-encoded HTML email to send to |
public | send_plaintext_message(array/string $to, \string $subject, \string $message, array $headers=array())</strong> : bool whether the messages were sent successfully Send a UTF-8-encoded plaintext email to send to |
public | abstract to() : mixed the email(s) to send to, as a comma-separated string or array Get the destination email address(es) |
protected | get_valid_to_address() : mixed Call the user-defined to() method, and throw an exception if returned value is invalid |