[2011-11-24]
PHP Mail Class
<?php
$mymail = new Mailer('[email protected]');
//From() is optional, can be defined within class manually
$mymail->From('Name', '[email protected]');
$mymail->Subject('Test email');
$mymail->Message('Tester');
if(!$mymail->Send()) {
echo $mymail->Error();
} else {
echo 'It worked!';
}
?>
You can download the Mailer PHP Class source files.
📘 Understanding Drupal: A Complete Guide to Caching Layers — my new book is out now!
Want more? Sign up for my weekly newsletter