Click here to Skip to main content
12,882,397 members (25,813 online)
Click here to Skip to main content
Alternatives (4)
Add your own
alternative version

Tagged as


112 bookmarked
Posted 21 Feb 2011

Using Gmail Account to Send Emails With Attachment

, 26 Sep 2013 CPOL
Sending Email using Gmail account from your application.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

8 Apr 2011
Man, that works great! I just converted it to VB.NET and also showed the Imports/Using that was needed, thanks to David's alternate. This was just what I was looking for, Thanks Abdur.Imports System.NetImports System.Net.MailPublic Class frmMain Private Sub frmMain_Load(sender As...
5 Apr 2011
charles henington
public class MailClass { public static void CreateMailAddresses(string sender, string reciever, out MailAddress mailfrom, out MailAddress mailto) { MailAddress Mailfrom = new MailAddress(sender); MailAddress Mailto = new...
18 Apr 2011
charles henington
Sending mail with attachmentspublic partial class Form1 : Form { public Form1() { InitializeComponent(); } public class MailClass : List { public void CreateMailAddresses(string sender, string reciever, out...
29 Mar 2011
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...


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


About the Author

Pakistan Pakistan
I am a learner.

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.170422.1 | Last Updated 26 Sep 2013
Article Copyright 2011 by dontumindit
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid