Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com

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 on Tuesday, April 4, 2006 8:40 AM DotNetNuke , ASP.NET | Back to top


    Comments on this post: Emailable DotNetNuke Module

    # re: Emailable DotNetNuke Module
    Requesting Gravatar...
    Nice - works like a charm.
    Left by Hal on Apr 04, 2006 1:28 PM

    # re: Emailable DotNetNuke Module
    Requesting 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.
    Left by Craig on Dec 29, 2008 1:29 AM

    # re: Emailable DotNetNuke Module
    Requesting 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
    Left by Michael Freidgeim on Dec 29, 2008 1:31 AM

    Your comment:
     (will show your gravatar)


    Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net