Mono support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 3868 time(s), 5 post(s). 12 month(s) agoby erin0201
erin0201
1

erin0201 12 month(s) ago

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
This content has not been rated yet. 
332 Reputation 45 Total posts
erin0201
2

erin0201 12 month(s) ago

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!
This content has not been rated yet. 
332 Reputation 45 Total posts
khorvat
3

khorvat 12 month(s) ago

Hi You can use BlogPostEdit module's save method override it and email published post.
This content has not been rated yet. 
11551 Reputation 1644 Total posts
erin0201
4

erin0201 12 month(s) ago

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
This content has not been rated yet. 
332 Reputation 45 Total posts
khorvat
5

khorvat 12 month(s) ago

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
This content has not been rated yet. 
11551 Reputation 1644 Total posts