Jump to content


Photo

The mail i had sent go to the Junk mail


  • Please log in to reply
4 replies to this topic

#1 karapantass

karapantass
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 04 March 2006 - 09:47 PM

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 ..
[color=#CC0000]

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 04 March 2006 - 10:17 PM

Please post the code you're using.

Ken

#3 karapantass

karapantass
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 05 March 2006 - 08:17 AM

[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 :


[!--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;
}
?>



[!--colorc--][/span][!--/colorc--][color=#009900] Thnx man again for ur care

#4 karapantass

karapantass
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 06 March 2006 - 12:27 PM

hey guyz nobody can help me plzzz

#5 XenoPhage

XenoPhage
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts

Posted 06 March 2006 - 02:29 PM

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.
--
[a href=\"http://blog.godshell.com\" target=\"_blank\"]XenoPhage[/a]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming.[/quote]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users