<html>
<body>
<?
require_once "GafMail.inc.php";
$m = GafMailFactory::createMail();
$m->setSubject("Enter Subject Here");
$m->setFrom("from@test.com.br");
$m->setTo("recipient@test.com.br");
$m->setReplyTo("replyto@test.com.br"); // 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";
}
?>
</body>
</html>
|