Click here to Skip to main content
13,042,819 members (69,415 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

4.7K views
5 bookmarked
Posted 2 Mar 2011

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

, 3 Mar 2011
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    Praise Praise    Rant Rant    Admin Admin   

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

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