1&1 web hosting and smtp configuration

ぐ巨炮叔叔 提交于 2019-12-01 14:45:19

You need to authenticate to send SMTP mail (Point 2a from their FAQ)

My client has a new hosting from 1and1.com, and the thing that worked for me was to remove the port number and it working. 1and1 provided me a reference link http://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/aspnet-c39624/send-an-e-mail-using-aspnet-a604246.html

My code:

SmtpClient objSmtp = new SmtpClient("smtp.1and1.com");
objSmtp.EnableSsl = true;
objSmtp.Credentials = new   
System.Net.NetworkCredential("mail@email.org", "PWD");

also just ensure that your reverse (PTR) maps back to you... otherwise alot of SMTP servers will reject you.

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