Emailable DotNetNuke Module

I've used an e-Mailable ASP.Net web page described by Eric Woodruff in an ASP.NET application. When I converted the ASP.NET application to DotNetNuke, I still wanted to have the same functionality-ability to e-mail rendered content of the DotNetNuke module.

I created the class EmailableModule based on DotNetNuke.Entities.Modules.PortalModuleBase and copied and paste the content of EMailPage class. There are a few places where I changed references to page to references to DNN module.I was able to use helper Event and Exception classes from the original EMailPage without changes.

Now I can use the same class derived from EmailableModule in DNN application and in generated e-mails.

Related Links: As an alternative to Eric Woodruff's solution see Scott Mitchell's:  

  • Emailing the Rendered Output of an ASP.NET Web Control
  • Enhancing the 'Email the Rendered Output of an ASP.NET Web Control' Code
  • Emailing the Rendered Output of an ASP.NET Web Control in ASP.NET 2.0
  • posted @ Tuesday, April 04, 2006 8:40 AM

    Print

    Comments on this entry:

    # re: Emailable DotNetNuke Module

    Left by Hal at 4/4/2006 1:28 PM
    Gravatar
    Nice - works like a charm.

    # re: Emailable DotNetNuke Module

    Left by Craig at 12/29/2008 1:29 AM
    Gravatar
    I've been searching for a solution to see if it was possible to render an asp page contents to an email instead of to the web browser. This is were I found Eric Woodruff's posts on CodeProject which looked exactly what I was looking for. However, his posts are very old (2006) and I was wondering whether you may have come across any new implementations. I also found on one of your blog posts that you did something similar with dotNetNuke but I couldn't find much info on it. Well anyway If you know of anything especially open source projects that would be great. Cheers.

    # re: Emailable DotNetNuke Module

    Left by Michael Freidgeim at 12/29/2008 1:31 AM
    Gravatar
    Hi Craig,
    I was quite happy with Eric's implementation. but I didn't have any similar task recently.
    Alternative way is to create aspx page that generate html you want to send, then "web scrape" it to email body.
    To "web scrape" you can use HttpWebRequest , e.g. use method PostGetResponseString from My HttpWebRequestHelper class

    Your comment:



     (will not be displayed)


     
     
     
     
     

    Live Comment Preview:

     
    «November»
    SunMonTueWedThuFriSat
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345