SmtpMailSerive中的Yahoo业务邮件设置 [英] Yahoo business mail settings in SmtpMailSerive
问题描述
在我们的网站.net核心.cshtml网络应用中,我们有一个页面,允许用户填写表单,并将信息通过电子邮件发送给我们,并将副本通过电子邮件发送给用户。 在雅虎升级其商业邮件帐户之前工作得很好。 现在,应用密码需要
。 我创建了各种密码,没有任何效果。
On our site, .net core .cshtml web app, we have a page that allows the user to complete a form and it emails the information to us and a copy to the user. Worked great until Yahoo upgraded their business mail accounts. Now an app password is required. I have created every kind of password available and nothing will work.
有没有人遇到过这个并找到了解决方案? 由于该网站托管Azure,雅虎告诉我问他们。
Has anyone encountered this and found a solution? Since the site is hosted with Azure, Yahoo tells me to ask them.
SmtpClient s1 = new SmtpClient();
s1.Credentials = new System.Net.NetworkCredential("username", "password");
s1.Port = 465;
s1.EnableSsl = true;
s1.Host = "smtp.bizmail.yahoo.com";
任何指导都将不胜感激。
Any guidance would be greatly appreciated.
Christine
Christine
推荐答案
根据一些文章( https://www.bing.com/search?q=smtpclient+smtp.bizmail.yahoo.com ),试试这个端口587而不是465.然后尝试端口25.然后尝试
端口25并将 EnableSsl 设置为false。
According to some articles (https://www.bing.com/search?q=smtpclient+smtp.bizmail.yahoo.com), try the port 587 instead of 465. Then try the port 25. Then try the port 25 and set EnableSsl to false.
显示结果和错误消息。
这篇关于SmtpMailSerive中的Yahoo业务邮件设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!