AnsweredAssumed Answered

Getting error with GEL email

Question asked by J-Bo on Feb 19, 2011
Latest reply on Feb 22, 2011 by Chris_Hackett
I am testing sending an email with attachment from a process. Here's the code
<gel:script
   xmlns:core="jelly:core"
   xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
   xmlns:mail="jelly:email"  >     

  <mail:email
    from="goofy@bb.org"
    to="goofy@bb.org"
    subject="Simple email"
    server="mta.bb.org" 
    attach="/apps/niku/gseBBFiles/BB_Report.html" >
    Hello World.
  </mail:email>

</gel:script>
Here's the error:

BPM-0704: An error occurred while executing custom script: org.apache.commons.jelly.JellyTagException: null:11:60: <mail:email> Property 'attach' has no write method at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:671) at org.apache.commons.jelly.impl.TagScript.run

If I remove the attach attribute, it works fine.

Any ideas?

Thanks

Outcomes