1&1 web hosting and smtp configuration

后端 未结 3 1124
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-17 01:48

Has anyone ever tried sending emails using 1&1 smtp host? I tried the following?

SmtpClient mailClient = new SmtpClient(\"smtp.1and1.com\", 587);
mailCli         


        
相关标签:
3条回答
  • 2021-01-17 02:21

    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");
    
    0 讨论(0)
  • 2021-01-17 02:33

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

    0 讨论(0)
  • 2021-01-17 02:33

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

    0 讨论(0)
提交回复
热议问题