Click here to Skip to main content
12,886,364 members (41,083 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


4 bookmarked
Posted 29 Mar 2011

Using Gmail Account to Send Emails With Attachment

, 29 Mar 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Hello Abdur,Helpful article on using Gmail to send mail. Added the following "using" statements to my code:System.Net for NetworkCredentialSystem.Net.Mail for MailMessage and AttachmentSystem.IO for adding a OpenFileDialogAlso modified my code to send with...
Hello Abdur,

Helpful article on using Gmail to send mail.

Added the following "using" statements to my code:

System.Net for NetworkCredential
System.Net.Mail for MailMessage and Attachment
System.IO for adding a OpenFileDialog

Also modified my code to send with newmsg.SendAsync();



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralDont you mean System.Windows.Forms for OpenFileDialog? Pin
charles henington4-Apr-11 22:58
membercharles henington4-Apr-11 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 29 Mar 2011
Article Copyright 2011 by SouthernILCode
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid