Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Error Transport error code was 0x80040217 while Sending Email in Asp.Net

Tags:

I am trying to send Email

But I am getting this Error.

The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available

any one having any idea about it please Help me

like image 916
Smily Avatar asked Feb 06 '12 07:02

Smily


People also ask

What is transport error code was 0x80040217?

Discovered that you can also get this error when Gmail's security settings don't allow messages to be sent from the address you intend to use. I had to enable access for less secure apps for my account in question by: Logging into the address you want to use for sending email from Excel.

What is the SMTP port number for Gmail?

The outgoing SMTP server, smtp.gmail.com , requires TLS. Use port 465 , or port 587 if your client begins with plain text before issuing the STARTTLS command.

What is SMTP Gmail Com error?

SMTP is an internet standard used by mail servers to send and receive email. SMTP error messages help you understand why a message wasn't sent successfully. If incoming or outgoing messages are bouncing, check the bounce messages for an SMTP error code that can help you diagnose the problem.


1 Answers

Discovered that you can also get this error when Gmail's security settings don't allow messages to be sent from the address you intend to use. I had to enable access for less secure apps for my account in question by:

  1. Logging into the address you want to use for sending email from Excel.
  2. Visit the page https://www.google.com/settings/security/lesssecureapps
  3. Click Enable Less Secure Apps.
  4. Click Done.
like image 131
Jacob Fink Avatar answered Sep 21 '22 17:09

Jacob Fink