<
From version < 18.1 >
edited by Ecaterina Moraru (Valica)
on 2014/06/19
To version < 18.2 >
edited by Vincent Massol
on 2014/06/19
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.evalica
1 +XWiki.VincentMassol
Content
... ... @@ -90,8 +90,8 @@
90 90  * The [[Mail Sender API>>extensions:Extension.Mail Sender API]] now allows to send Mails from a Template. This is achieved with 2 calls:
91 91  ** 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##:(((
92 92  {{code language="none"}}
93 -#set ($message = $services.mailsender.createMessage("template", documentReference, to))
94 -#set ($message = $services.mailsender.createMessage("template", documentReference, from, to))
93 +#set ($message = $services.mailsender.createMessage("template", documentReference))
94 +#set ($message = $services.mailsender.createMessage("template", documentReference, parameters))
95 95  {{/code}}
96 96  )))
97 97  ** One for setting the Body Part content from the Template:(((

Get Connected