Click here to Skip to main content
11,567,539 members (44,423 online)
Click here to Skip to main content

Tagged as

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

, 3 Mar 2011 CPOL 3.2K 5
Rate this:
Please Sign up or sign in to vote.
I would use Attachment [^] instead of MailAttachment[^]One should also use System.net.mail[^] instead of System.Web.Mail[^] which is now obsolete.
I would use Attachment [^] instead of MailAttachment[^]

One should also use System.net.mail[^] instead of System.Web.Mail[^] which is now obsolete.

License

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

Share

About the Author

Manas Bhardwaj
Architect
Netherlands Netherlands
Read my personal blog at www.manasbhardwaj.net.

You may also be interested in...

Comments and Discussions

 
GeneralI didn't use Attachment instead as my programs only send byt... Pin
OriginalGriff2-Mar-11 21:14
mvpOriginalGriff2-Mar-11 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150624.2 | Last Updated 3 Mar 2011
Article Copyright 2011 by Manas Bhardwaj
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid