Mail script does not work

samadam
Kilo Sage

I have a simple mail script and it does not work in any notification. I am using in scoped applications. Is there any setting to enable mail scripts ? I thought is was oob and it should work when I reference in notification

4 REPLIES 4

KarthikB9365919
Tera Contributor

Hi @samadam 

When referencing a mail script in a notification, use the correct syntax ${mail_script:script_name} and Make sure the mail script is created within the same scope as your notification.

KarthikB9365919
Tera Contributor

Hi @samadam 

When referencing a mail script in a notification, use the correct syntax ${mail_script:script_name} and Make sure that email script is in same scope as the notification.

Yes I am doing that. Scope is the same and referencing the same way. None of the mail scripts working is making me think there is something else that might have to be set

jaswalvishal106
Tera Expert

Hello @samadam 
1. try updating the domain scope to global if it is not.

2. try running the mail script in scripts-background to find out if it is working.

3. add gs.log to debug at the beginning, middle or at the end to find out whether it is getting executed at all or not.