C # call smtp email send several pit

 

 

1, Netease, Sina-mail added something called a "license key", and when opened smtp service, must be turned authorization code and mailing code also need to add authorization code, the following code:

// specified mailbox account and password, we need to note that this password when you open the mailbox settings where services that give your authorization code 
SmtpClient smtpclient = new SmtpClient (); …… NetworkCredential networkCredential = new NetworkCredential(sendEmail, sendpwd); smtpclient.Credentials = networkCredential;

  


2, mail can be sent at a local success, but posted to the server life and death is not successful, the operation reported a timeout error, but later found Tencent cloud management needs to be done 25 ports reopened

After 3,25 port reopened, send e-mail or find an error, information and solutions being given as follows:

Transaction failed. The server response was: DT:SPM 163 smtp13,EcCowAA3iPqhtvhdbKQ7ZQ--.22531S2 1576580770,please see http://mail.163.com/help/help_spam_16.htm?ip=148.70.133.22&hostid=smtp13&time=1576580770

Error cause
554 by default Netease mail as spam, certainly you send mail advertising information, such as: invite, sensitive words like free registration. When the proportion of sensitive words reaches a certain value, it will be identified as spam denial.
Solution
in the list of recipients inside with your own mailbox

Guess you like

Origin www.cnblogs.com/xtjatswc/p/12056407.html