sstangle73 Posted March 14, 2009 Share Posted March 14, 2009 i have the code as follows but the email wont send any advice? $to = "yourself@email.com"; $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 = "me@me.me"; $reply = "me@me.me"; $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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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! Quote Link to comment 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! 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.