e-mail problem

From: Date: Wed, 17 Oct 2001 09:44:05 +0000
Subject: e-mail problem
Groups: php.general 
Request: Send a blank email to php-general+get-71318@lists.php.net to get a copy of this message
Hi, what z the problem with following file?? email.php --------------------------------------------------------------------- <?php include_once('Mail/smtp.php'); include_once('Net/SMTP.php'); # Replace 127.0.0.1 with another SMTP host if needed $smtp_session = new Mail_smtp(array('10.145.0.18', 25, TRUE, 'bankem', 'narmada')); $headers['Subject'] = 'Sample subject'; $headers['Reply-To'] = 'balaji.ankem@wipro.com'; $headers['From'] = 'balaji.ankem@wipro.com'; $recipients = array('srinivasa.kiran@wipro.com'); $body = <<<EOF This is a sample body. EOF; $return = $smtp_session->send($recipients, $headers, $body); if ($return) echo "<font face=verdana size=+2 color=blue>Mail successfully sent to srinivas.kiran@wipro.com</font>"; else echo "<font face=verdana size=+2 color=blue>Failed to send a mail to srinivas.kiran@wipro.com</font>"; ?> -------------------------------------------------------------- Here it z displaying "Mail successfully sent to srinivasa.kiran@wipro.com". But we r not receiving any mail. Any help appreciate.. cheers -Balaji

----------------------------------------------------------------------------------------------------------------------- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:mailadmin@wipro.com and delete this mail from your records. ------------------------------------------------------------------------------------------------------------------------
« previous php.general (#71318) next »