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

Hi Leah,



Hope you tried clearing the browser cache, else you can try that.



This is how we print the icons on the mail, you can try these...



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" />');


Hi Karthik,



Will I create a new mail script and paste this one? or will I direct this one on the script - located on the what it will contain tab?


karthik73
Mega Guru

Hi Leah,



You need to have the snippet on mail script, you can create a new one or try in your existing mail script too.



you may have to change the image name too


Hi Karthik,



I tried your code for both email script and email template, but the thing is.. they're both make the 1st picture disappear or like this:



find_real_file.png



Am I doing it wrong?