Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark Olbert 87 posts 117 karma points
    Oct 19, 2009 @ 19:14
    Mark Olbert
    0

    Sending Email from Custom Template

    What's the simplest way of sending an HTML email from within the code-behind file of a custom template? I see that Umbraco has a SendMail method, and that it supports HTML, but I'm not sure it handles the fall back to plain old mail.

    - Mark

  • Simon Justesen 436 posts 203 karma points
    Oct 19, 2009 @ 21:52
    Simon Justesen
    0

    I don't think it does. the sendMail-method is very simple. One option is to let the user select what type of email they want, and then hope they make the right choice ;)

  • skiltz 501 posts 701 karma points
    Oct 19, 2009 @ 21:56
    skiltz
    0

    I always just use the trusty Old System.Net.Mail.  I also use normally grab the text of an email from a Document's bodyText,

Please Sign in or register to post replies

Write your reply to:

Draft