Custom email template example (replace satisfaction labels)
Last modified:
If you would like to replace your satisfaction labels in email notifications here is an example from one of our customers:
HTML
{% if notification.comment.topic_status %}<p align="right"><span style="border-radius:5px;background-color:#{{notification.comment.topic_status.color}};color:#FFFFFF;padding:5px;"><strong>{{notification.topic.status.name}}</strong></span></p>{% endif %} <p>Dear {{notification.user.name}},</p> <p> {% if notification.comment.topic_status %}Status has been changed by {{notification.comment.author.name_and_title}}. {% else %}New comment has been posted by {{notification.comment.author.name_and_title}}. {% endif %} </p> {% ue_notification_frame label="Click here to see full ticket" label_url=notification.url text=notification.comment.comment %} {% if notification.show_satisfaction_module %} <div style="text-align:center"> <h3>Please tell us how we're doing 🙂</h3> <p> <a href="{% ue_satisfaction satisfied_url_only=True %}" style="border-radius:5px;text-decoration:none;background-color:#5BB75B;color:#FFFFFF;padding:5px;white-space:nowrap;line-height:30px;margin-left:10px;margin-right:10px;">Great 👍🤩</a> <a href="{% ue_satisfaction unsatisfied_url_only=True %}" style="border-radius:5px;text-decoration:none;background-color:#DA4F49;color:#FFFFFF;padding:5px;white-space:nowrap;line-height:30px;margin-left:10px;margin-right:10px;">Disappointing 👎</a> </p> </div> {% endif %}
TEXT
{% if notification.comment.topic_status %}Status: {{notification.topic.status.name}} {% endif %}Dear {{notification.user.name}}, {% if notification.comment.topic_status %}Status has been changed by {{notification.comment.author.name_and_title}}: {% else %}New comment has been posted by {{notification.comment.author.name_and_title}}. {% endif %} {% if notification.comment.comment %}{{notification.comment.comment}} {% endif %} Click here to see full ticket [{{notification.url}}]{% if notification.show_satisfaction_module %} Please tell us how we're doing 🙂 Great 👍🤩 [{% ue_satisfaction satisfied_url_only=True %}] Disappointing 👎 [{% ue_satisfaction unsatisfied_url_only=True %}] {% endif %}