Hello,
I am brand new to PHP, so bear with me. I have seen several threads about this on this site, and none of the solutions have worked for me.
I have some code following the mail() call, which generates a confirmation html page. This page is generated and displayed correctly, so I'm assuming the mail() function does get called.
I have tried to fix this by removing the semicolon in front of the sendmail_path in /etc/php.ini and making it 'sendmail_path = sendmail -t -i -f my@realemail.com.' This didn't solve the problem.
I have reset my web server plenty of times after editing php.ini.
Any ideas?
Note: my@realemail.com is my real email in both php.ini and my php script.
I am brand new to PHP, so bear with me. I have seen several threads about this on this site, and none of the solutions have worked for me.
PHP:
$email = $_POST['email'];
$to = 'my@realemail.com';
$subject = 'some subject';
$msg = 'some message';
mail($to, $subject, $msg, 'From:' . $email);
I have some code following the mail() call, which generates a confirmation html page. This page is generated and displayed correctly, so I'm assuming the mail() function does get called.
I have tried to fix this by removing the semicolon in front of the sendmail_path in /etc/php.ini and making it 'sendmail_path = sendmail -t -i -f my@realemail.com.' This didn't solve the problem.
I have reset my web server plenty of times after editing php.ini.
Any ideas?
Note: my@realemail.com is my real email in both php.ini and my php script.