Problem with the php mail () function


I did. I even toggled the sendmail setting, just in case that was broken. Your script gives a result of sent but the email never arrives.

and… this is the screenshot from my resources:


so i think emails are not leaving 000webhost at all. Its not that zoho or gmail or hotmail are refusing the emails.


I’ve forwarded this issue to the admins


thanks. much appreciated


this is how mail() works it just puts email to the queue and that’s all
user will only get error if there are problems at the first stop
if there are no problems at the entry point, user won’t get any error
and the message will be silently discarded later on, probably in the later layers of email system
if user would have real email box, he would receive bounce with error why email can not be delivered
but this is not the case here


I have changed the htaccess file to read:

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

php_flag log_errors on
php_value error_reporting 32767
php_value error_log "/storage/ssd3/087/177087/public_html/errors.txt"
php_value mail.log "/storage/ssd3/087/177087/public_html/maillog.txt"

and I did get a maillog.txt file which confirms the mail() function being invoked. I don’t know if I can access the sendmail bin log file though. probably not.

Website cannot send emails

Anybody has an update to this issue as it is still unresolved.


@andrius possibly can advise


This topic was automatically closed after 24 days. New replies are no longer allowed.