Details
-
New Feature
-
Resolution: Fixed
-
Major
-
6.1-rc-1
-
None
Description
The goal is to add support for the following example:
{{velocity}} #set ($message = $services.mailsender.createMessage("localhost@xwiki.org", "john@doe.com", "subject test")) #set ($discard = $message.addPart("xwiki/template", $services.model.createDocumentReference('', 'Main', 'TemplateMail'), {"velocityVariables" : { "var1" : "value1" }})) or #set ($discard = $message.addPart("xwiki/template", $services.model.createDocumentReference('', 'Main', 'TemplateMail'), {"velocityVariables" : { "var1" : "value1" }, "attachements": $attachments})) #set ($discard = $message.send()) {{/velocity}}