Last night I was thinking to write a small post about sending emails using .NET. Then I thought of using GMAIL smtp account to send email. So here is the code.
using System; using System.Net; using System.Net.Mail;
/// <summary> /// Email Sending Class for GMAIL account. /// </summary>
Now from here you can call this class and send email. I have used the static emails here but you can make it change accordingly to use it as dynamically. You will need to add more paramaters like "body" in calling this function.
Thanks.
Be the first to rate this post
Tags:
Beginners
5/11/2009 1:10:41 PM #
God informations.
evden eve nakliyat ankara
7/19/2009 5:20:10 PM #
Thank you, for the source Cheers!
запознанства
7/20/2009 10:42:51 AM #
It is indeed a great resource to obtain information on this subject. Keep posting. Thanks.
Writing Legal Document
7/21/2009 4:06:02 AM #
Thanks.. Funny, I actually had this on my mind a few days ago..
Hoodia
7/21/2009 6:26:42 PM #
Tried to autotranslate you site not understand the writing any hope deutsch version?
Tommy Hilfiger
7/31/2009 10:28:39 AM #
The style and the nature of your content is really great! Thanks.
Aluminium bi fold doors
8/8/2009 7:31:51 AM #
We�re reading, keep writing! Thanks for being so open!
San Diego Foreclosure
8/8/2009 7:31:57 AM #
Does this work on a Mac?
Medicare Advantage Plans
8/14/2009 4:05:14 AM #
I think you have to improve a bit the design and usability of your blog.
The Original Sweatwatchpop Out
8/15/2009 5:18:18 PM #
Hmm strange this post is totaly irrelevant to the search query I entered in google but it was listed on the first page.
Stuhrling Original Mens Special
8/16/2009 1:35:20 AM #
Would you like to post a guest post on my blog?
Dakota 8280 4 Vibe Mens Watch
8/17/2009 3:26:09 PM #
I like your blog curently we are looking for a part time article writer would you be interested?
New Gucci 102g Ladies
8/18/2009 12:14:06 AM #
Womens Two Tone Stainless
8/19/2009 12:33:39 PM #
I am quite interesting in this topic hope you will elaborate more on it in future posts.
Timex Womens Classic Two
8/26/2009 4:44:11 AM #
Baume Mercier Classima
8/26/2009 2:04:41 PM #
Very interesting topic will bookmark your site to check if you write more about in the future.
9/28/2009 12:37:19 AM #
Very, very cool site site! I am loving it!! Will come back again - taking you feeds also, Thanks.
cash loans
9/28/2009 12:37:23 AM #
Of course, what a great site and informative posts, I will add backlink - bookmark this site? Regards, Reader.
10/15/2009 6:41:20 PM #
Great writeup.. I guess you summed it all up.. Cheers
Acai Bær
10/15/2009 6:41:24 PM #
10/19/2009 3:44:57 PM #
I think your blog need a new wordpress template. Downalod it from http://templates.wordpressguru.in, The site has nice and unique wordpress templates.
lave vaisselle couverts
10/29/2009 9:01:55 PM #
Nice way of summing it up.. cheers
Lån Penge
11/6/2009 7:12:31 PM #
Acai
11/6/2009 7:12:34 PM #
11/18/2009 5:27:30 PM #
Like your writing! Still you can do some things to improve it.
payday loans
11/20/2009 10:47:47 AM #
Nice post, just saved your RSS feed. Will check back later.. Cheers m8.
Acai Berry
Powered by BlogEngine.NET 1.4.5.0 Theme by Mads Kristensen
Hi, I am Mohit Bhardwaj, living in New Delhi, India. I am an Independent software developer for Microsoft Technologies.
Hope you will like my posts here on this blog.