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 ...