There is a field on catalog form 'Requested for'. When request is submitted, notification should trigger to user selected in 'Requested for' and request opened by. 'Opened By' user should be in (TO) and 'Requested for' user should be in (CC) of email

rani3
Kilo Contributor

There is a field on catalog form 'Requested for'. When request is submitted, notification should trigger to user selected in 'Requested for' and request opened by.'Opened By' user should be in (TO) and 'Requested for' user should be in (CC) of email notification. (Configure this through Email Script)

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

Hi for cc you can have a notification email script and call that email script in notification

Script:

email.addAddress("cc", current.requested_for.email, current.requested_for);

syntax to call email script in Notification

 ${mail_script:script name}

For to address you can just add openedBY under who will receive tab under Users/Groups in fields

 

Regards
Harish

rani3
Kilo Contributor

i return same in emailAddress("cc", current.requested_for.email, current.requested_for);

and i calling that email script in notification 

 ${mail_script:script name}

but if i checked in email logs module that cc is not person not receving any mail