Forum Moderators: coopster
<?php
$mail_to="abc@example.com";
$mail_from=$_POST['from'];
$mail_sub="WebmasterWorld Example";
$mail_mesg=$_POST['content'];if(mail($mail_to,$mail_sub,$mail_mesg,$mail_from))
{
echo("<span class='textred'><b>Thanks for your contribution<b> </span>");
}
else
{
echo("<span class='textred'>Submission Failed.Please retry. </span>");
}?>
Here 'from' and 'content' are a text box and text area respectively. I cannot find my mistake here..On clicking, I do get my thank you message..But the mail never gets delivered to my e-mail. Can somebody point out the problem?
$mail_from =$_POST['from'];
$mail_mesg=$_POST['content'];if(mail($mail_to,$mail_sub,$mail_mesg,"From: $mail_from\n"))
...
Still this doesnt work. I just got to know that the "\n" should be necessarily be there at the end of the header. Is this some problem with my mailbox. But I tried more than one email websites..I dont seem to be getting the email at all.