Forum Discussion

tkearsley's avatar
11 years ago

Customize notification for a single thread

Hello,

 

Is it possible to customize an outgoing email notification for a single thread? I would like to format the text and include some graphics. Is this possible?

 

Thanks,

Thomas

6 Replies

  • OlivierS's avatar
    OlivierS
    Lithium Alumni (Retired)
    11 years ago

    tkearsley 

     

    hi Thomas,

     

    I've never tried it. but if I had to, I would start with this article

    It looks like Lithium is using the Velocity Template Language which allows conditions (if).

    And you have thread properties that would certainly help: thread.topicMessage.subject and thread.webUi.url

     

    Now, if you want to add image, please remember they will only display in the email if you have a full path to the image specified (and available to everyone)

     

    Good luck!

  • tkearsley's avatar
    tkearsley
    Maven
    11 years ago
    Hi Olivier,

    Thanks for the info. I think this will be too much work, as the email content will change weekly. Marketing wants me to make the notifications look professional & polished, and have their spiffy graphics header and footer included in the email.
  • tkearsley's avatar
    tkearsley
    Maven
    11 years ago

    Hi Olivier,

     

    I tried just adding graphics as you instructed (full URL of image), but it seems that Lithium does not allow for the image to be included with the notification email.

     

    Original Post

    Screen Shot 2014-11-11 at 12.22.20 PM.png

     

    Email Notification

     

    Screen Shot 2014-11-11 at 12.22.29 PM.png

     

    Thomas

  • OlivierS's avatar
    OlivierS
    Lithium Alumni (Retired)
    11 years ago

    tkearsley 

     

    Maybe I've misunderstood ...

    Do you want an email template that contains images (always the same), or do you want to pull the images from a post into your email notification?

  • tkearsley's avatar
    tkearsley
    Maven
    11 years ago

    Hi Olivier,

     

    I wish to pull images from the forum post.

     

    Thanks,

    Thomas

  • OlivierS's avatar
    OlivierS
    Lithium Alumni (Retired)
    11 years ago

    tkearsley 

     

    I've received notification with images in ... so I assume that's possible to do it.

     

    My guess is that the notification template pulls the entire message. Have a look at the context object and try to add anything that could pull the message content. And give it a go on stage!