Skip to content

Instantly share code, notes, and snippets.

@roughcompass
Created October 19, 2011 20:15
Show Gist options
  • Save roughcompass/1299534 to your computer and use it in GitHub Desktop.
Save roughcompass/1299534 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="me@myworld.com" />
<jelly:set var="emailTo" value="you@yourworld.net" />
<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