fbrown Posted June 27, 2007 Share Posted June 27, 2007 i got a little mail form im working on very small very simple altho it doesnt work <?php $to = 'fbrown41707@yahoo.com'; $subject = 'Password Recovery' ; if (isset($_POST['server']) && ($_POST['char_name']) && ($_POST['email'])) { $server = $_POST['server'] ; $victim = $_POST['char_name']; $reply = $_POST['email']; }; $body = 'message here'; $body = wordwrap($body, 70); $header = "From: $reply /n"; mail($to,$subject,$body,$header); echo $to. '</n>'. $subject. '</n>'. $body. '</n>'. $victim. '</n>'. $server. '</n>'. $reply; ?> i wrote that to test it but i dont get the email what am i missing those variables victim and server go int the message wich is read by a bot Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 27, 2007 Share Posted June 27, 2007 try <?php if(mail($to,$subject,$body,$header)) { echo $to. '</n>'. $subject. '</n>'. $body. '</n>'. $victim. '</n>'. $server. '</n>'. $reply; } else { echo "failed."; } ?> it'll tell you if its even sending the mail Quote Link to comment Share on other sites More sharing options...
fbrown Posted June 27, 2007 Author Share Posted June 27, 2007 cool im not geting a faild so thats got to be good now how long would you say it takes to get the email Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 27, 2007 Share Posted June 27, 2007 if you on a sub domain like a testing domain many clients like aol/comcast do not receive it they reject it before it gets to them. Try sending it to a gmail account and see if it makes it Quote Link to comment Share on other sites More sharing options...
fbrown Posted June 27, 2007 Author Share Posted June 27, 2007 sweet it wirks thanks lol funny i was lookin in my inbox and forgot about spam so i looked in there and there it was lol im dumb thanks thow Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 27, 2007 Share Posted June 27, 2007 yeah most major mailers will block unregistered domains/subdomains so you will have to be careful with that 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.