duncan3dc/mailer

A simple mailer abstraction with a clean interface

2.0.0 2017-11-25 19:07 UTC

README

A simple mailer abstraction for PHP with a clean interface

Full documentation is available at http://duncan3dc.github.io/mailer/
PHPDoc API documentation is also available at http://duncan3dc.github.io/mailer/api/

release build coverage

Quick Example

Send an email using the local mail server:

(new \duncan3dc\Mailer\Server)
    ->createMessage()
    ->withFromAddress("admin@example.com", "Administrator")
    ->withRecipient("user@example.com", "Your Name")
    ->withSubject("Test Email")
    ->withContent("Hello")
    ->withAttachment("/tmp/UGqucq", "sensible-filename.xls")
    ->send();

Read more at http://duncan3dc.github.io/mailer/

Changelog

A Changelog has been available since version 2.0.0

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter