NewsLetter

Topics: Controls
Mar 14 at 9:26 PM
When you publish a post the newsletter widget will send a mail to all registered for newsletters.
I noticed that it send a new mail if you're altering a published post. If I, for instance, correct a spelling mistake, i didn't want it to send a new mail.
So in 'Custom/Extensions/Newletter.cs' I changed
    static Newsletter()
    {
        Post.Published += Post_Published;
    }
to
    static Newsletter()
    {
        Post.Publishing += Post_Published;
    }
This wil just send mail when publishing. If I want a new mail to be sent I first unpublish the post and then publish again.

Suits me....
May 5 at 6:43 PM
Thank you so much for this. For the life of me, I can't believe a new email is sent every time I tweak and save a post that's already been published. Crossing my fingers hoping this change works when I try it tonight.