2014-11-15, 12:50 AM
Has anyone experienced their forum sending topic subscription emails to the forum admin but no user can get a verification email or forum response email. I have successfully ran the email test script for PHP Mail Function:"Mail was sent by PHP"
**************************************
Test script:
Please create a new .php file with this content:
<?php error_reporting(E_ALL); $to = '[email protected]'; if(mail($to, 'Testing mail', 'This is a mailing test to see if PHP mail works.')) { echo 'Mail was sent by PHP'; } else { echo 'PHP could not send the mail'; } ?>
Replace [email protected] with your email address. Upload this file to your webserver and run it with your browser.
It should say "Mail was sent by PHP" and there should not be any other errors that show up.
Some webhosts have various restrictions on PHP mail. Some hosts require that the "From" address be a mailbox address on their server. Other hosts may disable the mail function completely. Please ask your webhost if there are any special restrictions they have on sending mail via PHP.
**************************************
**************************************
Test script:
Please create a new .php file with this content:
<?php error_reporting(E_ALL); $to = '[email protected]'; if(mail($to, 'Testing mail', 'This is a mailing test to see if PHP mail works.')) { echo 'Mail was sent by PHP'; } else { echo 'PHP could not send the mail'; } ?>
Replace [email protected] with your email address. Upload this file to your webserver and run it with your browser.
It should say "Mail was sent by PHP" and there should not be any other errors that show up.
Some webhosts have various restrictions on PHP mail. Some hosts require that the "From" address be a mailbox address on their server. Other hosts may disable the mail function completely. Please ask your webhost if there are any special restrictions they have on sending mail via PHP.
**************************************