Login   Register  
PHP Classes
elePHPant
Icontem

File: Example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gilton Guma  >  Gsguma Mail  >  Example.php  >  Download  
File: Example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Gsguma Mail
Compose and send HTML e-mail messages
Author: By
Last change: Adjust require file.
Date: 2011-05-21 16:40
Size: 477 bytes
 

Contents

Class file image Download
<?php
//How to use - Begin
require_once ("GsgumaMail.class.php");
$Email = New GsgumaMail();
$Email-> setName("Name");                                  //To name
$Email-> setMail("email@email.com");                       //To e-mail
$Email-> setSubject("Subject");                            //Subject
$Email-> setMessage("Message line 1 \n Line 2 \n Line 3"); //Message
echo $Email-> sendMail() ? "Ok!" "Error!";               //Send e-mail
//How to use - End
?>