cannot send mail using php mail function

江枫思渺然 提交于 2019-12-05 19:05:41

I have had this error before, and I believe all you have to do is change the email webmaster@example.com to a real email. Make sure you send it to a real email as well.

Replace @example.com with real email addresses.

and in PHP.ini set

SMTP = localhost

Apparently, a number of mail systems have trouble with the carriage return \r. You might want to modify your $header to use only the new line character \n. See if that works.

Also, you might want to try using the full From header:

From: Some Name Here <real_email@notAnExample.com>

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!