Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / system

Using Gmail Account to Send Emails With Attachment

4.00/5 (1 vote)
29 Mar 2011CPOL 12.4K  
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)