While sending mail from particular id I get this error, for rest of all id's its working fine, What was the problem over here..
Syntax error, command unrecognized. The server response was:
status code :0
stack trace:
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
Brief:
System.Net.Mail.开发者_开发知识库SmtpException: Syntax error, command unrecognized. The server response was:
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
Please help me out..
This error message states "Command unrecognized"
This means "something" was not formatted correctly.
The stack trace shows where the error occurred.
The final step was ConnectAndHandshakeAsyncResult
This is happening at the server level.
The message passed to the mail server is messed up.
The SMTP server does not allow your computer to send emails.
You need to white list you computer in the SMTP server for sending emails
精彩评论