Jump to content

Mail Function Not Working


Wahoo92583

Recommended Posts

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

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

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.