PHP Classes

File: usage.txt

Recommend this page to a friend!
  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: 17 years ago
Size: 457 bytes


Class file image Download
require_once ""; $m = GafMailFactory::createMail(); $m->setSubject("Enter Subject Here"); $m->setFrom(""); $m->setTo(""); $m->setReplyTo(""); // 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"; }