Approval Image on Email Notification

alyiah2504
Giga Contributor

I created a new notification for approval and added this script on the message html - located under what it will contain tab.

find_real_file.png

The contents of the mail script are the following:

find_real_file.png find_real_file.png

The images that being called are the 1st and 2nd from this picture:

find_real_file.png

But when I click the preview notification, this is what I've got,

find_real_file.png

In any case, why is that the image that I called from the mail script doesn't show up? Why did it call the 5th image? At the same time, why is it similar, when in the first place I made a script differently, Is there something wrong with my codes?

Message was edited by: Leah Marie David

1 ACCEPTED SOLUTION

karthik73
Mega Guru

Ah !, This is how my entire script is , Approval, Reject , Send back


template.print('<p>');


template.print('<a href="mailto:' + sServer + '?subject=Re:${number} - approve&amp;body=${watermark}">');


template.print('<img style="cursor: pointer;" title="Click Here to Approve" src="approve.png" alt="" width="46" height="45" />');


template.print('</a>');


template.print('    ');


template.print('<a href="mailto:' + sServer + '?subject=Re:${number} - reject&amp;body=${watermark}">');


template.print('<img style="cursor: pointer;" title="Click Here to Reject" src="reject.png" alt="" width="46" height="45" />');


template.print('</a>');


template.print('    ');


template.print('<a href="mailto:' + sServer + '?subject=Re:${number} - reschedule&amp;body=${watermark}">');


template.print('<img style="cursor: pointer;" title="Click Here to Send Ticket Back" src="sendback.png" alt="" width="46" height="45" />');


template.print('</a>');


template.print('</p>');



You can try this way, or if you can post your email script i can see what is different


View solution in original post

8 REPLIES 8

karthik73
Mega Guru

Ah !, This is how my entire script is , Approval, Reject , Send back


template.print('<p>');


template.print('<a href="mailto:' + sServer + '?subject=Re:${number} - approve&amp;body=${watermark}">');


template.print('<img style="cursor: pointer;" title="Click Here to Approve" src="approve.png" alt="" width="46" height="45" />');


template.print('</a>');


template.print('    ');


template.print('<a href="mailto:' + sServer + '?subject=Re:${number} - reject&amp;body=${watermark}">');


template.print('<img style="cursor: pointer;" title="Click Here to Reject" src="reject.png" alt="" width="46" height="45" />');


template.print('</a>');


template.print('    ');


template.print('<a href="mailto:' + sServer + '?subject=Re:${number} - reschedule&amp;body=${watermark}">');


template.print('<img style="cursor: pointer;" title="Click Here to Send Ticket Back" src="sendback.png" alt="" width="46" height="45" />');


template.print('</a>');


template.print('</p>');



You can try this way, or if you can post your email script i can see what is different


Hi Karthik,



It finally show up. thanks for your help.



Regards,


Leigh


Hi Karthik,

Is there anyway i can add include body of the reply email with formatted text(include html tags)

template.print('<a href="mailto:' + sServer + '?subject=Re:${number} - reschedule&amp;body=${watermark}">');

Thanks,

Neethu

Hi Karthik,

 

Can you please share detail step to implement the above script? I uploaded the images and created a email script and then calling it through template change.itil.approvel.role like ${mail_script:approval_image} but this is not working.

 

Regards,

Jitendra Singh