Click here to Skip to main content
15,893,368 members
Articles / Programming Languages / C#

Simple SMTP E-Mail Sender in C#… Console application

Rate me:
Please Sign up or sign in to vote.
4.86/5 (30 votes)
27 Feb 2012CPOL 209K   29  
Simple SMTP E-Mail Sender in C#… Console application

Alternatives

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

Please Sign up or sign in to vote.
19 Dec 2011Robert S Sharp
I'm not sure that GC would matter very much in such a simple app.But, it's either a call to Dispose on your SmtpClient after you're done using it:smtp.Dispose();or use a using:using (SmtpClient smtp = new SmtpClient{ Host = "smtp.gmail.com", Port = 587, Credentials = new...

License

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


Written By
Website Administrator
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions