Sending emails using Gel Script in Clarity
search cancel

Sending emails using Gel Script in Clarity

book

Article ID: 17147

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

How to send email by using Gel script? Need to use "CC" for email. Is there any sample code?

Resolution

Following ways are available:

1. Using gel:email tag. Sample code is available in the documentation below.

2. Using the email:email tag

<gel:script 
 xmlns:core="jelly:core"
 xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
 xmlns:email="jelly:email">
<email:email server="hostname" from="[email protected]" to="[email protected]" CC="[email protected]" subject="Sample email">
  This is test email.
 </email:email> 
</gel:script>

Additional Information

Note:

  1. When using <gel:email> tag it does not work if a space is present between email IDs
  2. But with <email:email> tag it works even if there is a space between email IDs