Class Mailer_PHP
Send emails from your own server with the library PHPMailer
Methods summary
public static
Kernel\Dispatch\Mailer_PHP
|
#
singleton( )
Returns a Mailer_PHP instance, creating it if it did not exist.
Returns a Mailer_PHP instance, creating it if it did not exist.
Returns
|
public
boolean
|
#
sendEmail( mixed $to, string $subject, string $message, mixed $from, mixed $replyTo = array(), array $files = array() )
Sends an email using the PHP function, but first setting the appropriate headers, content-types... and attached files.
Sends an email using the PHP function, but first setting the appropriate headers, content-types... and attached files.
Parameters
- $to
- Send it to whom? can be a string "john@example.com", an array('john@example.com', 'John Smith') or an array('Addresses' => array(array('john@example.com', 'John Smith'), 'peter@example.com', ....))
- $subject
- The message subject for the email
- $message
- The message body
- $from
- ( 'somebody@example.com' ) The email address from the sender or an array('somebody@example.com', 'Foo Bar');
- $replyTo
- ( 'somebody@example.com', 'foo@example.com', ... ) The email address to reply to or an array array(array('somebody@example.com', 'Foo Bar'), array(...));
- $files
- (default array() ) Array with the filenames of the desired files to attach.
Returns
boolean TRUE if sending was OK, FALSE otherwise. This does not mean the email will be delivered: it just means there was no error when sending it
Author
Nico Kupfer
|
Properties summary
public
PHPMailer
|
$mail
|
|