How to set CC with email content

Mi4
Tera Expert

Hi,

Is it possible to set sender in CC with email content?

find_real_file.png

I am trying to set notification as a task in a lifecycle event.

Regards,

1 ACCEPTED SOLUTION

Alok Das
Tera Guru

Hi,

You need to create a email script and define the user you want to set as cc in email and then call the email script from the notification.

Steps to create Email Script and how to use:

  1. Navigate to the "Notification email Script" in the "System Notification" in filter navigator.
  2. Set the name of email notification "add_newusers_to_cc".
  3. add below code in the script:
 email.addAddress("cc","email_address_of_the_user","Name_of_ther_user");
//if you want to push the user dynamically then you can use the scripting to validate and push the user.

4. Now navigate to the notification where you want to add cc.

5. add "${mail_script:add_newusers_to_cc}" in "Message HTML" field in "What it will contain" form section of notification.

Kindly mark my answer as Correct and helpful based on the Impact.

Regards,

Alok

 

 

View solution in original post

19 REPLIES 19

Alok Das
Tera Guru

Hi,

You need to create a email script and define the user you want to set as cc in email and then call the email script from the notification.

Steps to create Email Script and how to use:

  1. Navigate to the "Notification email Script" in the "System Notification" in filter navigator.
  2. Set the name of email notification "add_newusers_to_cc".
  3. add below code in the script:
 email.addAddress("cc","email_address_of_the_user","Name_of_ther_user");
//if you want to push the user dynamically then you can use the scripting to validate and push the user.

4. Now navigate to the notification where you want to add cc.

5. add "${mail_script:add_newusers_to_cc}" in "Message HTML" field in "What it will contain" form section of notification.

Kindly mark my answer as Correct and helpful based on the Impact.

Regards,

Alok

 

 

Hi,

Thank you for comment.

this is fine?

Regards,

yes this looks fine. 

i am assuming you have also written the email script . if you have written then it will work. 

Yes as Harshvardhan mentioned it should work fine if you have written the email script. Also, make sure that the email script name should exactly be same as used in the attachment "add_user_cc".

Hi,

Thank you so macu.

By the way, can this 'CC' be set on an account that does not exist in sys_user?

Example: Group email address, etc

Regards,