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"
."X-Mailer: PHP/" . phpversion());
if ($result == TRUE)
echo "Success";
else
echo "Failed";
?>
-End of Code-
Sanjeev Rana
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"
."X-Mailer: PHP/" . phpversion());
if ($result == TRUE)
echo "Success";
else
echo "Failed";
?>
-End of Code-
Sanjeev Rana
Comment