Outlook SMTPClient server error 5.3.4 5.2.0

旧时模样 提交于 2019-12-05 02:52:59

OK, I resolved this issue on my system as follows:

i was sending the message with a different email address to that of the account I was sending from like this:

string from = "email@somwhere.com";

so I changed it to :

string from = "thecorrectemailaddress@outlook.com";

so now it works fine ... happy days

MailMessage mail = new MailMessage(from, to);

The response of a 5.2.0 STOREDEV is because of the SPF on an email server. https://en.wikipedia.org/wiki/Sender_Policy_Framework

What happened here is that when you sent an email from email@somwhere.com your email server attempts to authenticate that the email was legitimate. So it asks somwhere.com what IPs are allowed to send emails claiming to be from somwhere.com, since you don't own somwhere.com it told your email client that it was fraudulent, and your email client rejected it outright as spam.

So when you changed the email to be ...@outlook.com outlook's SPF didn't reject it as spam, and it went through successfully.

I have resolved this issue on my system as follows: The from address should be like these below emails- 1. "thecorrectemailaddress@outlook.com" 2. "thecorrectemailaddress@hotmail.co.uk" Here I am using "smtp.live.com" as server domain and port is 587. If there is any problem with the firewall , you can add a rule in your firewall for the same port 587.

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