[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.
Want more? Sign up for my weekly newsletter