Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1446 posts 1857 karma points
    Oct 13, 2016 @ 09:07
    Gordon Saxby
    0

    Inline styles

    Does Newsletter Studio have any built in function(s) to convert the email HTML to inline styles?

    We want to use the "send from content section" method - http://support.newsletterstudio.org/customer/portal/articles/1053067 - and have the newsletters visible online. However, for the emails themselves the HTML needs to be converted to inline styles. E.g.

    <p style="Margin:0;Margin-bottom:10px;color:#717171;font-family:Helvetica,Arial,sans-serif;font-size:11px;font-weight:400;line-height:14px;margin:0;margin-bottom:10px;padding:0;text-align:left" class="small-text-center">
    

    Is this something we can do with Newsletter Studio?

  • Markus Johansson 1918 posts 5785 karma points MVP c-trib
    Oct 13, 2016 @ 11:57
    Markus Johansson
    0

    Hi!

    We have got feature requests about this but it's not implemented at the moment.

    If you really need this you could add your own render task and work with something like Premailer (https://github.com/milkshakesoftware/PreMailer.Net) to prerender the content.

    We have this in the backlog but I can't give you a date for when we're looking closer at it.

    // m

  • Gordon Saxby 1446 posts 1857 karma points
    Oct 13, 2016 @ 12:12
    Gordon Saxby
    0

    Well, it's good that you mentioned PreMailer because that is the tool that I am looking to use at the moment!

    It would also be a great enhancement to add this processing directly into Newsletter Studio :-)

  • Markus Johansson 1918 posts 5785 karma points MVP c-trib
    Oct 13, 2016 @ 12:29
    Markus Johansson
    0

    I agree! =D Please let me know if you decide to go forward with the render task - I might be able to help you out.

  • Gordon Saxby 1446 posts 1857 karma points
    Oct 13, 2016 @ 12:43
    Gordon Saxby
    0

    Yes Marcus, I am looking at adding a Render task.

    I watched a video which I assume was recorded for an old version, as it says to add the render task to the web.config in the "Umbraco/NewsletterStudio" folder. I assume that is now the newsletterStudio.config file in the "Config" folder?

    I saw

          <task name="InsertCustomDataRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.InsertCustomDataRenderTask, NewsletterStudio" />
    

    and wondered if you were doing it automactially?!

  • Gordon Saxby 1446 posts 1857 karma points
    Oct 13, 2016 @ 13:05
    Gordon Saxby
    0

    No - I needed to add my own "task" entry

  • Markus Johansson 1918 posts 5785 karma points MVP c-trib
    Oct 13, 2016 @ 13:23
    Markus Johansson
    0

    Hi!

    Thats right - the video is a little old.

    You just need to add it to the list in /config/newsletterStudio.config.

    // m

Please Sign in or register to post replies

Write your reply to:

Draft