Skip to content

SimpleMailer PHP Class, a simple class to send mails using mail() function.

Notifications You must be signed in to change notification settings

cristiantx/SimpleMailerPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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';

Coming Soon

  • Attachment Support

License

SimpleMailerPHP is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

About

SimpleMailer PHP Class, a simple class to send mails using mail() function.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages