can u find error in php file?
| From: | Balaji Ankem | Date: | Tue, 08 Jan 2002 09:24:39 +0000 |
| Subject: | can u find error in php file? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79765@lists.php.net to get a copy of this message | ||
<?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, '', ''));
$headers['Subject'] = 'Sample subject';
$headers['Reply-To'] = 'balaji.ankem@wipro.com';
$headers['From'] = 'balaji.ankem@wipro.com';
$headers['User']='bankem';
$headers['Password']='narayana';
$recipients = array('balaji.ankem@wipro.com');
$body = <<<EOF
This is a sample body.
EOF;
$return = $smtp_session->send($recipients, $headers, $body);
if ($return)
echo "Mail was successfully sent to balaji.ankem@wipro.com";
else
echo "FAIL";
?>
for above program I am getting Mail was successfully sent to balaji.ankem@wipro.com.
But actually no mail was received by me.
-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. ------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------- 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. ------------------------------------------------------------------------------------------------------------------------