Email Notification: variable with instance email address and id

Matt102
Giga Guru

Hi,

I am creating a notification email. I want to use the instance email address as the mailto recipient and the instance id in the email body. Instead of hard coding, on a per instance basis, does anyone know of variables I can use, in my email notification Message HTML, such that they will resolve to the instance email address and instance id?

Thanks,Matt

PS If you could point me to the location of  ${NOTIF_UNSUB} I think I might be able to work it out..

6 REPLIES 6

Elijah Aromola
Mega Sage

You could call a mail script that specifically prints out the instance email address. The code for the mailscript would be:

template.print(gs.getProperty('instance_name') + '@service-now.com');

thnx will have to test tomorrow now...

Let me know how this works out for you.

AFAICS the instance email address is the value of the SMTP account [sys_email_account].[From]. I was wondering if this will always equal 

gs.getProperty('instance_name') + '@service-now.com')