m8rge / alternative-mail
Simple class for utf8 html/text emails with small attachments
v0.9
2013-08-31 11:53 UTC
This package is auto-updated.
Last update: 2024-10-29 04:58:45 UTC
README
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();