AnsweredAssumed Answered

Attachments in HTML Email

Question asked by info_tel on Apr 24, 2012
Latest reply on Nov 29, 2016 by Yaman_Yazgan

Is there any way we can attach a file (stored in an attachment field) to an HTML email using GEL Script?

I was able to get details on how to attach a file to an email from the below two threads:

With the above approach im faced with two issues:
1. The email is in plain text format, so we are not able to provide hyperlinks.
2. The script gives the below error when i specifiy the root path (/Root/DMS/Project/sample.txt), but doent give an error when i specify it via the default filestore path. The issue with the default filestore path is that it sends the attachment with the 5million id and not with the actual file name with proper extentions. [refer attached email content]

"An error occurred while executing custom script: org.apache.commons.jelly.JellyTagException: null:102:122: <email:email> Property 'attach' has no write method at org.apache.commons.jelly.impl.TagScript.handleException".

Any pointer/suggestion to resolve the issue would be great. Thanks.

PS: Save the attachment with .msg extension before opening it.