PHP Classes

File: smtptest.php

Recommend this page to a friend!
  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: 19 years ago
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!";

?>