Wahoo92583 Posted November 3, 2007 Share Posted November 3, 2007 I am using an Apple Mac Book Pro computer on which I am running MAMP (Macintosh, Apache, Mysql, PHP) I can not get the mail function to send mail after processing my forms locally. I checked the php.ini file to see what could be the problem and I believe I have it configured properly. Please help, this is very frustrating??? Quote Link to comment https://forums.phpfreaks.com/topic/75876-mail-function-not-working/ Share on other sites More sharing options...
rajivgonsalves Posted November 3, 2007 Share Posted November 3, 2007 is it returning any sort of errors ? Quote Link to comment https://forums.phpfreaks.com/topic/75876-mail-function-not-working/#findComment-384026 Share on other sites More sharing options...
Wahoo92583 Posted November 3, 2007 Author Share Posted November 3, 2007 not it is not, although I might have the errors turned off in php.ini, my forms process fine in fact, I have an echo statement at the end of my code to see if all of the code is being processed, my echo statement does output to the browser. should I change SMTP to something else than localhost, what should the necessary php.ini configuration look like to run a script such as the one I am trying to run Quote Link to comment https://forums.phpfreaks.com/topic/75876-mail-function-not-working/#findComment-384055 Share on other sites More sharing options...
sayedsohail Posted November 3, 2007 Share Posted November 3, 2007 show us the code? Quote Link to comment https://forums.phpfreaks.com/topic/75876-mail-function-not-working/#findComment-384141 Share on other sites More sharing options...
Wahoo92583 Posted November 3, 2007 Author Share Posted November 3, 2007 Here is my code: <?php $name_full = $_POST['name_full']; $email = $_POST['email']; $comments = $_POST['comments']; mail('wahoo92583@bellsouth.net','feedback from visitor form', $comments); print "Thank you! $name_full We appreciate your comments."; ?> This is in a page called form_response.php and is being sent from a page called form.php The print statement executes, and the read out is processed correctly however no email is sent to me. Quote Link to comment https://forums.phpfreaks.com/topic/75876-mail-function-not-working/#findComment-384213 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.