require_once "GafMail.inc.php";
$m = GafMailFactory::createMail();
$m->setSubject("Enter Subject Here");
$m->setFrom("
[email protected]");
$m->setTo("
[email protected]");
$m->setReplyTo("
[email protected]"); // optional
$m->isHtml=true; //default false
$m->setBody("<h3>Este</h3> é um <a href=#>e-mail</a> qualquer"); // text or html message body
$m->send();
if($m->hasErrors()){
echo "error send mail";
}
else{
echo "mail sent";
}