karapantass Posted March 4, 2006 Share Posted March 4, 2006 [b]Hey guyz plzzzz help me when i send a mail to anywhere it goes to the Junk mailso plzzz guyz help me to make it go to the inbox Thnx for ur care ..[/b][color=#CC0000] Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 4, 2006 Share Posted March 4, 2006 Please post the code you're using.Ken Quote Link to comment Share on other sites More sharing options...
karapantass Posted March 5, 2006 Author Share Posted March 5, 2006 [[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] Quote Link to comment Share on other sites More sharing options...
karapantass Posted March 6, 2006 Author Share Posted March 6, 2006 hey guyz nobody can help me plzzz Quote Link to comment Share on other sites More sharing options...
XenoPhage Posted March 6, 2006 Share Posted March 6, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.