Login   Register  
PHP Classes
elePHPant
Icontem

File: smtptest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Harish Chauhan  >  SMTP Mail  >  smtptest.php  >  Download  
File: smtptest.php
Role: Example script
Content type: text/plain
Description: example
Class: SMTP Mail
Send e-mail message through an SMTP server
Author: By
Last change:
Date: 2005-01-12 22:41
Size: 466 bytes
 

Contents

Class file image Download
<?php

  
require ("smtp.inc.php");
  
  
$smtp=new SMTPMAIL;
  
  
$from="HARISH<harishc@templatearena.com>";
  
$to="harish<harishc@templatearena.com>";
  
$cc="Tapan<tapank@templatearena.com>;manoj<manojk@templatearena.com>";
  
$subject="welcome";
  
$body="This is test mail.don't reply it.";

  if(!
$smtp->send_smtp_mail($to,$subject,$body,$cc,$from))
    echo 
"Error in sending mail!<BR>Error: ".$smtp->error;
  else
    echo 
"Mail sent succesfully!";

?>