MonoX 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.

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

Viewed 51455 time(s), 5 post(s) 6/7/2012 4:35:07 PMby erin0201
erin0201

erin0201

6/7/2012 4:35:08 PM
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. 
453 Reputation 61 Total posts
erin0201

erin0201

6/7/2012 4:37:35 PM
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. 
453 Reputation 61 Total posts
khorvat

khorvat

6/7/2012 5:35:00 PM
Hi You can use BlogPostEdit module's save method override it and email published post.
This content has not been rated yet. 
15993 Reputation 2214 Total posts
erin0201

erin0201

6/7/2012 5:42:58 PM
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. 
453 Reputation 61 Total posts
khorvat

khorvat

6/8/2012 6:10:05 AM
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. 
15993 Reputation 2214 Total posts