System.net.mail.smtpException; The server submits a protocol conflict server response as follows:

Source: Internet
Author: User

A problem has recently been sent to the mail.

Host GoDaddy port 25,80 can be used

STMP Server address: smtpout.secureserver.net

SSL not supported I'll do it. Enablessl set to False

Everything was fine before the delivery was successful ...

OK, after a few changes, the problem comes.

Error

The error is:

System.net.mail.smtpException; The server submits a protocol conflict server response as follows:

Are you thinking that the response after the colon is??? Why?

All right, the system is only responsible for the error.

Checked the MSDN.

There's a property called Smtpstatuscode.

There is an example ... As follows... Yes .... Check Status code ...

Try
{
Client. Send (message);
}
catch (Smtpexception e)
{
Console.WriteLine ("Error: {0}", E.statuscode);
}
Finally
{
Data. Dispose ();
}

After doing this, you can see the status code bird ...

Look, E.statuscode is generalfailure.

Explanation: The transaction failed to occur. You receive this error when the specified SMTP host could not be found.

A little puzzled.

Because the e-mail address of my sender is automatically generated .... I checked the slot, and replaced the dynamic generation with a fixed ...

The send was successful.

OK, the problem is in the account generation problem ...

In other words, the sender's account is wrong ...

The problem is solved ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.