• The eternal confessions of a beautiful mind...
  • DamianM.Co.UK
  • Home
  • About
  • Archives
  • Contact
  • Sitemap
  • My Flickr

    IMG_9585IMG_9115IMG_9113IMG_9111IMG_9078IMG_9075IMG_9069IMG_9065IMG_9041IMG_9032IMG_8963IMG_8928IMG_8916IMG_8915IMG_8904IMG_8876IMG_8858IMG_8830IMG_8828IMG_8826

  • Recent Posts

    • New Ohio Roller Coaster - INSANE!!!
    • Speeding
    • Captions not required
    • Unfortunate Backgrounds
    • Unfortunate Signs
    • OMG!!
    • Women as explained by engineer
    • The Monty Hall Problem
    • ahhh still love them - Motivational Posters
    • What does Mona Lisa do when the Museum is closed………
    • 21st Century kids books
    • Cool Origami
    • AWESOME Pictures!
    • Things you shouldn’t find in your vegetable patch!
    • World’s Best Graffiti…?
  • My Tools

    • Blog_LinkIt
    • DCoda Theme
    • DCoda Widgets
    • RSS_Sticky
    • WordPress.org
    • WP_BlogNetworking
    • WP_BlogRollSync
    • WP_BoilerPlate
    • WP_Censor
    • WP_ContactMe
    • WP_DeliciousPost
    • WP_EasyReply
    • WP_HeadNFoot
    • WP_LinkIt
    • WP_OneInstall
    • WP_PostDate
    • WP_PostNotes
    • WP_RssSticky
    • WP_Spoiler
    • WP_Submission
  • My Web

    • ASPAlliance
    • ClaimID
    • del.ico.us
    • Digg
    • DSLRBlog
    • DVDProfiler
    • Flickr
    • Honeyed SPAM
    • My Blog
    • My company
    • MYSpace
    • WordPress.org
    • YouTube

    Simple SMTP mailing with .NET

    SMTP Mail is a handy thing to have on any web site, be it for orders or just for
    user feed back. .NET provides you with the Mail class that has everything you
    need to send mail.


    Here is a small example of the class in action; it sends the source code to a
    designated email address.


    You will notice that the System.Web.Mail.SmtpMail class is assigned to a
    variable before it is used. This is not necessary if you are going to be using
    the SMTP service on your web server, you can directly call the
    System.Web.Mail.SmtpMail.send method.


    However, the ability to nominate an SMTP server is a nice feature, as it aids
    administration, in that you have only one SMTP server to worry about
    configuring and securing.

    Leave a Reply

    Related Posts from the Past:

    • Email
    • Themes are a changing
    • POP3 Email
    • .NET Screen Scraping in depth
    • Wordpress Richtext editor problems