Mono Support Blog: Send blog post to Email Address for internal network 

Viewed 51512 time(s), 5 post(s), 6/7/2012 4:35:07 PM - by erin0201
6/7/2012 4:35:08 PM
453 Reputation 61 Total posts

Hello,

Is there anyway to subscribe to the blog with your email address so that the posts are sent via email without having to use an RSS feed reader?
I know that Outlook has an RSS Feed Reader built in, but Entourage does not. Is there something I can configure that will send blog posts to email addresses?

Thanks!
Erin

1
6/7/2012 4:37:35 PM
453 Reputation 61 Total posts

This is an internal blog that can't be accessed from the internet, so it would be great if the feature used our email server to email the posts rather than trying to implement with some sort of online feed reader.

Thanks again for any advice!

2
6/7/2012 5:35:00 PM
15993 Reputation 2214 Total posts

Hi You can use BlogPostEdit module's save method override it and email published post.

3
6/7/2012 5:42:58 PM
453 Reputation 61 Total posts

Sorry, I don't get into the manual coding very often. Do you have any instructions that would show how to do this? I have found the Blog PostEdit file in the modules, but I don't see where the code is for the btnSave? I know I can put embed code in the page since the site is precompiled which means I can't edit a code behind file, but I don't see any code for the btnSave_Click that I can change.

Do you have a step by step example?

Thanks!
Erin

4
6/8/2012 6:10:05 AM
15993 Reputation 2214 Total posts

Hi,

you should inherit the BlogPostEdit.ascx.cs and then you should override the OnSave method e.g.

public partial class BlogPostEdit : MonoSoftware.MonoX.ModuleGallery.Blog.BlogPostEdit
{
  ...
        public override void OnSave()
        {
            base.OnSave();
            //Put your e-mail code here
        }
  ...
}

Now you need to copy the BlogPost.ascx mark-up and point Inherits attribute to your newly created class, then you should edit BlogContainer.ascx and point BlogPostEdit to your newly created BlogPostEdit.ascx.

Regards

5
This is a demo site for MonoX. Please visit Mono Software for more info.