Sending mail to local mail server - “SENT: 550 The address is not valid.”

◇◆丶佛笑我妖孽 提交于 2019-12-05 02:01:35
Olcay Ertaş

To solve SENT: 550550 The address is not valid. problem, you have to set sendmail_from to a valid mail address in php.ini file.

To solve SENT: 530 SMTP authentication is required problem, open hMailServer Administrator. Go to Settings->Advanced->IP Ranges->My Compter. Disable all options under "Require SMTP authentication" section.

TimWolla

It seems that you are sending the "sender"-email (From-Header) like this: you@yourdomain. yourdomain is an invalid domain. Change this to a valid email-address.

Daniel Vérité

You're using you@yourdomain as the From address and the server rejects it.
Use a real address instead.

I'm guessing $contact is <olcayertas@gmail.com> and that's what's causing the problem. Try changing it to olcayertas@gmail.com.

solution fix

KEEP IN MIND, every time, after You change php.ini,

you should restart wamp (! ! !)

to read the updated php.ini

p.s. you may need to use ini_set("sendmail_from", "your_user@gmail.com"); in your php script, before mail();

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