Jump to content

Archived

This topic is now archived and is closed to further replies.

karapantass

The mail i had sent go to the Junk mail

Recommended Posts

[b]Hey guyz plzzzz help me
when i send a mail to anywhere it goes to the Junk mail
so plzzz guyz help me to make it go to the inbox
Thnx for ur care ..[/b][color=#CC0000]

Share this post


Link to post
Share on other sites
Please post the code you're using.

Ken

Share this post


Link to post
Share on other sites
[[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]

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.