Failed to connect to mailserver at “localhost” port 25

前端 未结 8 1220
日久生厌
日久生厌 2020-11-22 10:34

I keep getting this error when I try to send an e-mail in PHP:

Warning: mail() [function.mail]: Failed to connect to mailserver at \"localhost\" port 25, ver         


        
8条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 11:13

    If you are running your application just on localhost and it is not yet live, I believe it is very difficult to send mail using this.

    Once you put your application online, I believe that this problem should be automatically solved. But i think ini_set() helps you to change the values in php.ini during run time.

提交回复
热议问题