#README
##Description
####Version 1.1a
SimpleMailer Class is a simple way to send emails via PHP using an external file as a Template. It supports placeholders to be replaced on-the-fly. More info: http://cristian.bothmedia.com/
$mailer = new SimpleMailer( true ); // Sets true to turn debug on.
$mailer->setTo('[email protected]', 'Test Destinatary');
$mailer->setSubject('Test Message');
$mailer->setFrom('[email protected]', 'BothMedia.com');
$mailer->addCC('[email protected]');
$mailer->setTemplate( 'template/sample-template.html' ); // Sample Template file
$mailer->htmlEmail( false ); // Turn this on for HTML Content
$mailer->setMessage('Hello World!');
$sent = $mailer->send(); // Sends email
echo ($send) ? 'Email sent successfully' : 'Could not send email';
- Attachment Support
SimpleMailerPHP is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.