Jump to content

The mail i had sent go to the Junk mail


karapantass

Recommended Posts

[[b]size=2][font=Courier New][/size][!--coloro:#000000--][span style=\"color:#000000\"][!--/coloro--]
Thnx ken for ur care anyway the code is a very simple script but all i want to try the sending of the email to any mail box anyway the script is as following :[/b]

[!--colorc--][/span][!--/colorc--][!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]
<?
switch ($fn){
default:
?>
<form name="form1" method="post" action="testing.php">
<p>YOUR NAME :
<input name="name" type="text" id="name">
</p>
<p>YOUR E_MAIL :
<input name="email" type="text" id="email">
</p>
<p align="left">COMMENTS :
<textarea name="comment" id="comment"></textarea>
</p>
<p align="left">
<div align="center">
<input name="fn" type="hidden" id="fn" value="<? echo "add"; ?>">
<input type="submit" name="Submit" value="Submit"></div>
</p>
</form>
<?
break;
case "add":
$to="karapantass@hotmail.com";
$email="3shams.com";
$message="$name sent you a comment on your site.\n They said $comment\n\n their e-mail address was: $email";
mail($to,"comments from your site",$message,"from:$email\n");
if (mail) {
echo "Thanks for your comments , That's the only way we can improve our site";
} else {
echo "there was a problem sending your comment.please check that you filled in the form correctly.";
}
break;
}
?>



[b][!--colorc--][/span][!--/colorc--][color=#009900] Thnx man again for ur care[/b]
Link to comment
Share on other sites

Mail going to a junk folder is likely a function of the spam prevention mechanisms in place for that site. To minimize your chances of ending up in the junk folder, you need to make sure all of your headers are populated correctly and your mail follows, as closely as possible, any applicable mail RFCs.

This is not a function of PHP, per se. Therefore, any code posted may or may not help you.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.