sstangle73 Posted March 14, 2009 Share Posted March 14, 2009 i have the code as follows but the email wont send any advice? $to = "[email protected]"; $subject = "Some random subject"; $message = " At $time a new college coach has registered for the what ever!<br><br> Name: $_POST[name] <br> Title: $_POST[title] <br> College: $_POST[college] <br> Email: $_POST <br> Work Phone: $_POST[wphone] <br> Cell Phone: $_POST[cphone] <br> <br> $_POST[name] left the comment/question:<br><br> <i> $_POST[comments] </i> <br><br> There are now $ID Coaches registered!<br><br> "; $from = "[email protected]"; $reply = "[email protected]"; $headers = 'From: ' . $from . "\r\n"; $headers .= 'Reply-to: ' . $reply . "\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; if(mail($to,$subject,$message,$headers)){} thanks Link to comment https://forums.phpfreaks.com/topic/149430-solved-mail/ Share on other sites More sharing options...
Anti-Moronic Posted March 14, 2009 Share Posted March 14, 2009 Just try to change this line: if(mail($to,$subject,$message,$headers)){} to: mail($to,$subject,$message,$headers); --if that works, then the conditional is the issue. To be honest, I didn't see anything else which would stop this from sending. Hope that helps. Link to comment https://forums.phpfreaks.com/topic/149430-solved-mail/#findComment-784829 Share on other sites More sharing options...
sstangle73 Posted March 14, 2009 Author Share Posted March 14, 2009 nope! me either i dont quite get it Link to comment https://forums.phpfreaks.com/topic/149430-solved-mail/#findComment-784831 Share on other sites More sharing options...
sstangle73 Posted March 14, 2009 Author Share Posted March 14, 2009 got it the script was getting ended b4 that point all set now! Link to comment https://forums.phpfreaks.com/topic/149430-solved-mail/#findComment-784838 Share on other sites More sharing options...
Anti-Moronic Posted March 14, 2009 Share Posted March 14, 2009 To be expected when you don't submit all of your code. Glad it's working now! Link to comment https://forums.phpfreaks.com/topic/149430-solved-mail/#findComment-784840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.