Initial chamber
Step 1: Open Your Visual Studio 2010, Go to File, New, Projects, then under Visual C# select Windows.

You can change the name of the project and browse your project to different location too. And then press OK.
Design chamber
Step 2: Now open your Form1.cs file, where we will create our design for sending email to gmail. We will drag 3 labels, 3 textboxes and one button from toolbox to Form1.cs. You will see your Form look like this.

Code chamber
Right click on the blank part of Form1.cs, then click View Code. You will enter in the code part of the form. Write the following code and then Press F5 to run the project.
For GmailSend.dll file - -> https://gmailsend.codeplex.com/
Add some of the namespaces for sending Gmail.

If you can’t find these namespaces in the intellisense, then in the Solution Explorer - Right Click, Add References. In Add References, Browse and Find GmaiSend.dll that you had downloaded from the above link.
Add References:

Code chamber
Open your Form1.cs file where you have to write the code for sending Gmail.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.



Milind ChavanPosted Apr 16, 2018, 7:00 AM
The file downloaded from - -> https://gmailsend.codeplex.com/ this link is Ionic.Utils.Zip.dll. please tell me how to download gmailsend.dll file
Dinuka JayalathPosted Mar 1, 2018, 8:12 AM
Thank you Now it works!
Dinuka JayalathPosted Mar 1, 2018, 5:45 AM
I get a error message "The SMTP server requires a secure connection or the client was not authenticated. The Server response was: 5.5.1 Authentication Required. " Why isn't it working?
Android DeveloperPosted May 3, 2017, 6:45 AM
Very helpful thank you
Arul RPosted Oct 28, 2015, 5:31 AM
Good one !!!
Santhakumar MunuswamyPosted Oct 18, 2015, 5:21 AM
Good one
DanielPosted Oct 9, 2015, 3:54 AM
Nice, it works perfect!
Harshad PansuriyaPosted Oct 8, 2015, 4:24 AM
Nice one
RakeshPosted Oct 8, 2015, 1:25 AM
Good one
Vinodh NarayananPosted Oct 8, 2015, 12:57 AM
nice share
Ankit BansalPosted Oct 8, 2015, 12:52 AM
nice one..
Rajeesh MenothPosted Oct 8, 2015, 12:33 AM
Good One
Humayun Kabir MamunPosted Oct 8, 2015, 12:12 AM
Nice...
Priyaranjan K SPosted Oct 7, 2015, 10:17 PM
Cool Work ..
Muhammad Aqib ShehzadPosted Oct 7, 2015, 3:12 PM
fantastic one