- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2015 06:14 AM
So I've been having issues trying to get an email script to add either CC or BCC recipients correctly. I'm referencing the example in the wiki article about adding them in, but I'm not quite sure what I'm doing wrong. My notification email script looks like
var gr = new GlideRecord('u_trainees');
var training = event.parm1;
gr.addQuery('u_training.number',training);
gr.query();
while (gr.next()){
email.addAddress("cc", gr.u_email, gr.u_first_name + " " + gr.u_last_name);
}
and I'm calling it with
${mail_script:training_recipients}
in the notification.
As you can see, I'm not using the user table to grab people and names. I'm just finding the email field I made on a custom table and querying that table to get the trainees emails and names for the CC/BCC. Does anyone have an idea about what I'm doing wrong?
Solved! Go to Solution.
- Labels:
-
Analytics and Reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2015 01:05 AM
Even we have "Copied" field available in emails table.We can find the cc'd persons emails in that field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2015 12:32 AM
Just check the header field in the email logs...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2015 12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2015 01:05 AM
Even we have "Copied" field available in emails table.We can find the cc'd persons emails in that field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2017 08:33 AM
Hey Alex, "Copied" field showing CC's persons but not BCC's. Is there a way to see BCC persons in mail logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2024 02:25 AM
Could you please tell where we can add bcc email script in the notification after creating it ?