PDA

View Full Version : Unable to send mails via PHP



rana
09-28-2005, 08:42 AM
Hi,

I am confused. I am using the following script to send out email by PHP.
It shows 'Success' but NO Email. What am I doing wrong ? What other way is there to send out email by a script (Any language supported will do)

Code - mail.php
---------------
<?
$result = mail("s.rana@spymac.com", "the subject", "Line1\r\nLine2",
"From: rana@qmsys.info\r\n"
."Reply-To: s.rana@spymac.com\r\n (spymac.com@hewitt.com\r\n)"
."X-Mailer: PHP/" . phpversion());
if ($result == TRUE)
echo "Success";
else
echo "Failed";
?>

-End of Code-

Sanjeev Rana

VodaHost
10-07-2005, 12:14 AM
please visit the below thread to learn more about sending out email.

http://www.vodahost.com/vodatalk/showthread.php?t=246&highlight=forms