How to send an email in PHP reliably?

前端 未结 4 1578
闹比i
闹比i 2021-01-24 11:07

i am learning how to send an email.i have installed appserver and in files php.ini-dist and php.ini-recommended i did the following changes

SMTP=localhost

send         


        
4条回答
  •  [愿得一人]
    2021-01-24 11:54

    I believe you have at least two problems:

    1. I am guessing that php.ini-recommended and php.ini-dist are respectively an example and a template configuration files; modifications to them may not impact the "real" php.ini, currently used by your instance of PHP. Use phpinfo() to make sure that your configuration is correct.
    2. Spam filters. Jeff Atwood has a pretty good blog post about implementing the checks that servers do when checking if your email message is spammy. Don't forget:

    Just because you send an email doesn't mean it will arrive.

提交回复
热议问题