This project is read-only.

newsletter customization

Oct 28, 2013 at 8:19 PM
  1. I am trying to customize the newsletter that is send via email so it basically contains the entire blogpost that is uploaded? how can i do this.
  2. I see the newletter is set up of certain HREF links such as [TITLE], [LINK],[LINK_DESCRIPTION],[WebRoot] Where can i find a complete list of this?
Oct 29, 2013 at 10:29 AM
In widgets/Newsletter have a look at method FormatBodyMail.
Oct 30, 2013 at 12:44 PM
Sorry...i dont see it or not following....

Instead of showing just the title, i'd like to show the enter blog in the newsletter

in the formatbodymail, i see

body = body.Replace("[TITLE]", publishable.Title);
        body = body.Replace("[LINK]", publishable.AbsoluteLink.AbsoluteUri);
        body = body.Replace("[LINK_DESCRIPTION]", publishable.Description);
following code, but looking for option to show actual text/images of the blog in email

Oct 30, 2013 at 7:31 PM
Edited Oct 30, 2013 at 7:42 PM
Yes, that's the section you're after.

publishable.Content will give you whatever the post contains, that's the HTML and any other stuff.
The other stuff might include any extension placeholders i.e. [extension:setting] and that would possibly remain since it's usually replaced on the post serving event(untested, so not sure, but it's the kind of thing you need to consider).
You might also have to reformat image paths, any relative links and such like, so almost certainly you will have to process the content in some way before substituting in the newsletter.