Email call in php is not being sent

Username (e.g. epiz_XXX) or Website URL

EPIZ_32281614
momsforlibertysantaclara.com

Error Message

None

Other Information

I run a small file mailtest.php containing

<?php
if (mail("momsforlibertyscc@gmail.com","Subject","Email message","From: missuh@gmail.com")) {
  echo 'Email sent successfully...';
} else {
  echo 'Problems with sending email...';
}
?>

All appears to be good, but no email shows up. Is there some setup I should be taking care of to make this work properly? Secondarily, in which error log might I be looking for an indication of what’s going on?

Thanks!

Unfortunately, the PHP mail() function is restricted and most messages will not be sent.
For more info:

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.