Class Message
Simplifies sending emails.
Simplifies sending emails by automatically verifying email addresses and fetching HTML.
Usage
$m = new \Module\Mailer\Message(); $m->addTo("test@test.com"); $m->addFrom("from.me@test.com"); $m->addSubject("This is a test, don't panic."); $m->fetchHTML("http://test.com/template.php"); $m->send();
Changelog
Version 1.8
- Added namespacing
Version 1.6
- Fixed bug with BCC and CC
Namespace: Module\Mailer
License: http://opensource.org/licenses/MIT
Author: Jaime Rodriguez, hi.i.am.jaime@gmail.com
Version: 1.8
Date: August 13, 2014
Located at class.mailer.php
License: http://opensource.org/licenses/MIT
Author: Jaime Rodriguez, hi.i.am.jaime@gmail.com
Version: 1.8
Date: August 13, 2014
Located at class.mailer.php
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
addSubject( string $subject = '' )
Adds a subject to the email. If there is no subject the time will be used. |
private
string[]
|
private
|
$to
|
|
private
|
$cc
|
|
private
|
$bcc
|
|
private
|
$from
|
|
private
|
$subject
|
|
private
|
$body
|
|
private
|
$html
|