mail(): SMTP server response: 550 The address is not valid error on hmailserver

后端 未结 5 1802
失恋的感觉
失恋的感觉 2020-11-30 16:07

I am getting this error despite configuring php.ini to a valid send_from address. I know it is valid because it works when I send it from squirrel mail but when sending mai

5条回答
  •  爱一瞬间的悲伤
    2020-11-30 16:32

    here is another solution - WAMP send Mail using SMTP localhost


    KEEP IN MIND, everytime, after You change php.ini,

    you must restart wamp (! ! !)

    p.s. in php.ini, i have used:

    SMTP = localhost 
    smtp_port = 25 
    sendmail_from = your_user@gmail.com
    

    or if oyu cant edit php.ini, try to insert these lines in your php script.

    ini_set("SMTP", "localhost");
    ini_set("smtp_port", "25");
    ini_set("sendmail_from", "your_user@gmail.com");
    

提交回复
热议问题