How does PHP's `mail` work?

前端 未结 4 1884
你的背包
你的背包 2020-12-09 07:18

PHP\'s mail function seems to deliver mail on a clean system, with no apparent configuration done by the administrator or webmaster (no SMTP configuration in

4条回答
  •  猫巷女王i
    2020-12-09 07:59

    It's really not that reliable, actually, unless the underlying sendmail or something is properly configured.

    Amazon SES has better servers than whatever server you're using and gets mail there more times than with mail().

    The real reason you shouldn't use mail() is because your server's IP address is probably completely unknown to mail services such as GMail, Yahoo, etc, and there is a higher chance it will get marked as spam. Why does it get marked as spam? Because mail() is very easy and simple to exploit for spam purposes.

提交回复
热议问题