<
From version < 14.1 >
edited by Denis Gervalle
on 2014/06/18
To version < 14.2 >
edited by Lyes BANDOU
on 2014/06/18
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.dgervalle
1 +XWiki.lyes
Content
... ... @@ -81,7 +81,11 @@
81 81  
82 82  == Miscellaneous ==
83 83  
84 -* The [[Mail Sender API>>extensions:Extension.Mail Sender API]] now allows creating ##MimeMessageFactory## to generate pre-filled MimeMessage. Example of usage:(((
84 +The [[Mail Sender API>>extensions:Extension.Mail Sender API]] now allows:
85 +
86 +* Creating ##MimeMessageFactory## to generate pre-filled MimeMessage.
87 +
88 +Example of usage:(((
85 85  {{code language="none"}}
86 86  #set ($message = $services.mailsender.createMessage("template", documentReference, to))
87 87  #set ($message = $services.mailsender.createMessage("template", documentReference, from, to))
... ... @@ -90,6 +90,15 @@
90 90  This will generated 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##.
91 91  )))
92 92  
97 +* Creating TemplateMimeBodyPartFactory to generate html body content with alternate text evaluated from template document containing a XWiki.Mail xobject.
98 +
99 +Example of usage:(((
100 +{{code language="none"}}
101 +$message.addPart("xwiki/template", $documentReference, {"velocityVariables" : { "var1" : "value1" }})
102 +$message.addPart("xwiki/template", $documentReference, {"velocityVariables" : { "var1" : "value1" }, "attachments" : $attachments})
103 +{{/code}}
104 +)))
105 +
93 93  = Translations =
94 94  
95 95  The following translations have been updated:

Get Connected