Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

email script for notification

abhisek
Tera Contributor

I have a select box variable for example 'partner' in my catalog item, which is having user details as question choices(text is the name and value is the email id).

I have to send notification to the partner field value which was selected during raising the request. For example partner field value is 'ABC'(email is 'abc@exmpl.com'). Email subject and body I want to populate separately from system notification itself.

How can I implement this using email script and notification?

 

Can anyone please help me out, it is very urgent.

1 REPLY 1

AMan1997
Tera Guru

Hi Abhishek,

 

In email script you can directly use your selectbox variable as below and use the value (email address) to send the notification.

var getEmailAdd = current.variable_name; // Get Value of 'ABC' which is ('abc@exmpl.com')

email.setReplyTo(getEmailAdd);