Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Using Gmail Account to Send Emails With Attachment

, 29 Mar 2011
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();
 
Regards,
David

License

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

About the Author

SouthernILCode

United States United States
No Biography provided

Comments and Discussions

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

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

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

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 29 Mar 2011
Article Copyright 2011 by SouthernILCode
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid