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
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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.