Login   Register  
PHP Classes
elePHPant
Icontem

File: usage.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Douglas M Santos  >  GafMail  >  usage.txt  >  Download  
File: usage.txt
Role: Documentation
Content type: text/plain
Description: Usage
Class: GafMail
Compose and send text or HTML e-mail messages
Author: By
Last change:
Date: 2007-03-12 11:15
Size: 457 bytes
 

Contents

Class file image Download
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";
}