Sending email through Gmail SMTP server with C#
|April 1, 2009||Posted by forumadmin under TechQns||
For some reason the accepted answer or any others don’t work for me for “Sending email in .NET through Gmail“. Why would it not work?
UPDATE: I have tried all the answers (accepted and otherwise) in the other question, but neither work.
I would just like to know if it works for anyone else, otherwise Google have changed something (which has happened before).
When I try the piece of code that uses
SmtpDeliveryMethod.Network, I quickly receive a SmtpException on Send(message). The message is
The SMTP server requires a secure connection or the client was not authenticated.
The server response was:
5.5.1 Authentication Required. Learn more at” <– seriously, it ends there.
This is a question I asked a long time ago, and the accepted answer has been code I’ve used many, many times on different projects.
I’ve taken some of the ideas in this post and other EmailSender projects to create an EmailSender project at Codeplex. It’s designed for testability and supports my favourite SMTP services such as GoDaddy and Gmail.
|Asked By – CVertex||Read Answers|