stvchez Posted March 10, 2007 Share Posted March 10, 2007 this should be fairly straightforward. I need to simply send mail to a desired address. I'm using the mail function, and doesn't seem to be working.. <form action="contactMail.php" method="post"> <table cellpadding=2 cellspacing=0 border=0> <tr><td><b>Sender</b></td><td><input type="text" name="you"></td></tr> <tr><td><b>Recipient</b></td><td><input type="text" name="to"></td></tr> <tr><td><b>Title</b></td><td><input type="text" name="tit"></td></tr> <tr><td><b>Message</b></td><td><textarea rows=6 cols=16 name="msg" ></textarea></td></tr> <tr><td> </td><td><input type="submit" value="Send Now"></td></tr> </table> </form> <?php if ($_SERVER["REQUEST_METHOD"]=="POST"){ mail($_POST['to'], $_POST['tit'], $_POST['msg'],"From:" . $_POST['you']); } ?> Link to comment https://forums.phpfreaks.com/topic/42157-simple-mail-question/ Share on other sites More sharing options...
per1os Posted March 10, 2007 Share Posted March 10, 2007 Chances are it is in the "From:" portion, If I were you I would remove that and see if the mail sends if it does than that is the issue if it doesn't than chances are it is in your POST data. I would than print_r($_POST) to make sure that my post data is what I expected. --FrosT Link to comment https://forums.phpfreaks.com/topic/42157-simple-mail-question/#findComment-204500 Share on other sites More sharing options...
stvchez Posted March 10, 2007 Author Share Posted March 10, 2007 thanks for your reply. I feel like i've been going around in circles. I'm using two of my test accounts. When I send the post to my gmail account, it makes it there everytime. When I send to my comcast email, it never makes it no matter what I try. The code is the same for the two Link to comment https://forums.phpfreaks.com/topic/42157-simple-mail-question/#findComment-204521 Share on other sites More sharing options...
Greaser9780 Posted March 10, 2007 Share Posted March 10, 2007 Could possibly be a spam issue. I think comcast has lots of spam protection. Did it make it to the bulk folder by chance? Link to comment https://forums.phpfreaks.com/topic/42157-simple-mail-question/#findComment-204525 Share on other sites More sharing options...
stvchez Posted March 10, 2007 Author Share Posted March 10, 2007 i have check all folders. there is no bulk folder with any of the received msgs there. also, while testing, I turned off the zone alarm spam filtering that I have in place Link to comment https://forums.phpfreaks.com/topic/42157-simple-mail-question/#findComment-204538 Share on other sites More sharing options...
per1os Posted March 10, 2007 Share Posted March 10, 2007 Some servers get blocked from comcast, especially if you do not specify any headers. I know my server is blocked from AOL. Best bet is to research mail headers and get the proper headers and try that. --FrosT Link to comment https://forums.phpfreaks.com/topic/42157-simple-mail-question/#findComment-204546 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.