<?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'] = '[EMAIL PROTECTED]';
$headers['From'] = '[EMAIL PROTECTED]';
$headers['User']='bankem';
$headers['Password']='narayana';
$recipients = array('[EMAIL PROTECTED]');
 
$body = <<<EOF
 
   This is a sample body.
 
EOF;
 
$return = $smtp_session->send($recipients, $headers, $body);
 
if ($return)
   echo "Mail was successfully sent to [EMAIL PROTECTED]";
else
   echo "FAIL";
 
?>
 
 
for above program I am getting Mail was successfully sent to [EMAIL PROTECTED].
 
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:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to