To include images in business rules notifications, change to the Email body of the rule to include an HTML tag.
HTML allows you to reference an image's location and have the email body display the image itself, rather than the image's URL or file path. Use an image tag that looks like this:
<img src="image_url">. The image needs to be hosted online for the workflow to work. If you don't have somewhere to host the image file, upload it as an asset in your help center.
To include an image in the body of a trigger notification
- Find the image you want to include in the email body and get the direct URL for that image.
We will use the image below which has this direct URL: https://d1eipm3vz40hy0.cloudfront.net/images/social/twitter-zendesk.jpg
- In the email body of the trigger's action, include
<img src="image_url">and replace the image's direct URL where it says "image_url".
- Test your trigger to make sure everything looks correct. Add a trigger condition so the trigger only fires on your test ticket, for example, add the condition Tags | Contains at least one of the following |
testforhtmland then check the email notification you receive.
You can also use HTML to do things like resizing the image so that it looks more in line with the rest of the email. Learn more with w3schools.