Simple php class for utf8 html/text emails with small attachments
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
AlternativeMail.php
LICENSE
README.md
composer.json

README.md

AlternativeMail Build Status SensioLabsInsight

Simple php class for utf8 html/text emails with small attachments

Using

$email = new AlternativeMail();
$email->setFrom('me@mail.localhost')
    ->addTo('bro@mail.localhost')
    ->setSubject('True story, bro')
    ->setTextBody("simple\ntext\nbody")
    ->send();

or

$email = new AlternativeMail();
$email->setFrom('me@mail.localhost', 'Your brother')
    ->addTo('bro@mail.localhost', 'My Bro')
    ->addTo('bro2@mail.localhost', 'My Bro, too')
    ->setSubject('True story, bro')
    ->setTextBody("simple\ntext\nbody")
    ->setHtmlBody('<hr />html message<hr />')
    ->addAttachment(__FILE__, 'forceName.php', 'application/x-php')
    ->send();