Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -129,26 +129,6 @@ 129 129 {{/velocity}} 130 130 {{/code}} 131 131 132 -* The [[Mail Sender API>>extensions:Extension.Mail Sender API]] now allows to send Mails from a Template with internationalization support by retrieving the ##XWiki.Mail## Object which has its ##language## property equals to a passed language. For example:((( 133 -{{code language="none"}} 134 -$message.addPart("xwiki/template", $documentReference, {"language" : "fr", "velocityVariables" : { "var1" : "value1" }}) 135 -{{/code}} 136 -))) 137 - 138 -* The [[Mail Sender API>>extensions:Extension.Mail Sender API]] now allows to send Mails from a Template. This is achieved with 2 calls: 139 -** One for setting the Subject from the Template. The following will generate a ##MimeMessage## with the subject pre-filled. The value will be that of the ##subject## xproperty from an ##XWiki.Mail## xobject in the Document pointed to by the passed ##documentReference##:((( 140 -{{code language="none"}} 141 -#set ($message = $services.mailsender.createMessage("template", documentReference)) 142 -#set ($message = $services.mailsender.createMessage("template", documentReference, parameters)) 143 -{{/code}} 144 -))) 145 -** One for setting the Body Part content from the Template:((( 146 -{{code language="none"}} 147 -$message.addPart("xwiki/template", $documentReference, {"velocityVariables" : { "var1" : "value1" }}) 148 -$message.addPart("xwiki/template", $documentReference, {"velocityVariables" : { "var1" : "value1" }, "attachments" : $attachments}) 149 -{{/code}} 150 -))) 151 - 152 152 == Job module improvements == 153 153 154 154 * Introduced job progress helper API, see [[Job Module>>doc:extensions:Extension.Job Module||anchor="HNotifyaboutprogress"]] for more details.