Skip to content

Instantly share code, notes, and snippets.

@hiamitchaurasia
Forked from roughcompass/Email Gel Script
Created November 10, 2019 12:58
Show Gist options
  • Save hiamitchaurasia/d76fb2b30625f94c34bd99d43c10ddf3 to your computer and use it in GitHub Desktop.
Save hiamitchaurasia/d76fb2b30625f94c34bd99d43c10ddf3 to your computer and use it in GitHub Desktop.
Sample GEL script to send an email.
<gel:script
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
xmlns:jelly="jelly:core"
xmlns:mail="jelly:email">
<!-- email vars -->
<jelly:set var="emailFrom" value="[email protected]" />
<jelly:set var="emailTo" value="[email protected]" />
<jelly:set var="emailServer" value="your.email.server.com" />
<!-- send it -->
<mail:email
server="${emailServer}"
from="${emailFrom}"
to="${emailTo}"
subject="Hello">
Hello World!!!
</mail:email>
</gel:script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment