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 = '[email protected]'; $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 Link to comment https://forums.phpfreaks.com/topic/57364-mail-help/ 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 Link to comment https://forums.phpfreaks.com/topic/57364-mail-help/#findComment-283664 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 Link to comment https://forums.phpfreaks.com/topic/57364-mail-help/#findComment-283666 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 Link to comment https://forums.phpfreaks.com/topic/57364-mail-help/#findComment-283667 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 Link to comment https://forums.phpfreaks.com/topic/57364-mail-help/#findComment-283669 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 Link to comment https://forums.phpfreaks.com/topic/57364-mail-help/#findComment-283671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.