Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

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

, 3 Mar 2011 CPOL
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.
Follow on   Twitter   LinkedIn

Comments and Discussions

 
GeneralI didn't use Attachment instead as my programs only send byt... PinmvpOriginalGriff2-Mar-11 22: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
Web03 | 2.8.1411023.1 | Last Updated 3 Mar 2011
Article Copyright 2011 by Manas Bhardwaj
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid