Click here to Skip to main content
15,890,512 members
Articles / Programming Languages / C#

Sending an Email in C# with or without attachments: generic routine.

Rate me:
Please Sign up or sign in to vote.
4.88/5 (54 votes)
3 Mar 2011CPOL 184K   52  
Sending an email is not a real problem, but I am fed up with answering the question "How do I do it?" in Q&A . So, here is the generic routine I use to send an email, with or without attachments, so I can just point people at it!

Views

Daily Counts

License

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


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions