Changes for page Release Notes for XWiki 6.1 Milestone 2
Last modified by Thomas Mortagne on 2017/03/24
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ThomasMortagne1 +XWiki.VincentMassol - Content
-
... ... @@ -45,6 +45,26 @@ 45 45 * The LESS Compiler now compress the generated CSS. 46 46 * A new component has been added to compute a Color Theme compatible with [[extensions:Extension.Color Theme Application]] from a LESS file. 47 47 48 +== New Mail module (Experimental) == 49 + 50 +Allows to send mails in Java and from wiki pages. 51 + 52 +See [[Mail Sender API>>extensions:Extension.Action API]] for all details. 53 + 54 +Example to send an email from a wiki page: 55 + 56 +{{code language="none"}} 57 +{{velocity}} 58 +#set ($message = $services.mailsender.createMessage("localhost@xwiki.org", "john@doe.com", "subject")) 59 +#set ($discard = $message.addPart("text/plain", "text content")) 60 +#set ($discard = $message.send()) 61 +#set ($discard = $message.waitTillSent(10000)) 62 +#foreach ($error in $message.getErrors()) 63 +* $error.message 64 +#end 65 +{{/velocity}} 66 +{{/code}} 67 + 48 48 == Job module improvements == 49 49 50 50 A new ##org.xwiki.job.JobExecutor## component has been introduce to replace ##org.xwiki.job.JobManager## (which is now deprecated). This component adds support for parallel execution of jobs and also support grouping jobs that need to be executed in the same thread.