How to add an image in Notification email script in a message

Neelu S
Tera Contributor

How to add an image in Notification email script in a message

8 REPLIES 8

Aman Kumar S
Kilo Patron

Hey,

To insert the imagein email notification(Make sure image is in System UI -> Images in png format)

var image = "xyz.png''; //image name

template.print( '<img src="' + image + '" />' );

//call the email script to Notification using

${mail_script:email_script_name}

Best Regards
Aman Kumar

Feel free to mark correct, If I answered your query correctly

Will be helpful for others 🙂

Best Regards
Aman Kumar

@Neelu S 

Hey, 

Did I answer your query correctly?

If yes, feel free to mark correct and close the thread.

Will be helpful for future visitors.

Best Regards
Aman Kumar

Musab Rasheed
Tera Sage

Hi @Neelu S ,

Add image in Images table then copy syntax from image and paste it like this in Email script. Mark my answer as correct if that helps

template.print('<img src="name_of_image" width="849" height="200" border="0" align="top"/>);

You can remove border and align and just add below like

template.print('<img src="jll_hr_direct.jpg" width="849" height="200"/>);
Please hit like and mark my response as correct if that helps
Regards,
Musab