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??? 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 ? 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 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? 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('[email protected]','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. Link to comment https://forums.phpfreaks.com/topic/75876-mail-function-not-working/#findComment-384213 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.