\SmtpMailer
Synopsis
class SmtpMailer
extends Mailer
{
- // methods
- public void __construct()
- public static void set_conf()
- public static void get_conf()
- protected static void set_conf_from_yaml()
- public void configure()
- public void sendPlain()
- public void sendHTML()
- public void setupMailer()
- protected void sendMailViaSmtp()
- public void handleError()
- protected void buildBasicMail()
- protected void addCustomHeaders()
- protected void attachFiles()
- protected static void array_merge_recursive_distinct()
Hierarchy
Extends
- Mailer
Members
private
- $conf
- $defaults
public
- $mailer
Methods
protected
- addCustomHeaders() — @param array $headers @return void
- array_merge_recursive_distinct() — @param array $array1 The first array @param array $array2 The second array @return array the merged array
- attachFiles() — @param array $attachedFiles @return void
- buildBasicMail() — @param string $to @param string $from @param string $subject @return void
- sendMailViaSmtp() — @param string $to the recipient @param string $from the sender @param string $subject the subject @param array $attachedFiles an array of files to attach @param array $customheaders an array of custom headers to attach @param array $inlineImages an array of image files to attach inline @return boolean
- set_conf_from_yaml()
public
- __construct() — Constructor
- configure() — @return void
- get_conf() — @return stdClass
- handleError() — @param string $e The error message - usually Exception::errorMessage() @param string $msgForLog The message for the SS log @param return void
- sendHTML() — Overwriting Mailer's function
- sendPlain() — Overwriting Mailer's function
- set_conf() — @param array|object $conf An associative array containing the configuration - see static::$conf for an example @return void
- setupMailer() — @param string $to the recipient @param string $from the sender @param string $subject the subject @param array $attachedFiles an array of files to attach @param array $customheaders an array of custom headers to attach @param array $inlineImages an array of image files to attach inline @return boolean