Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10605

Add internationalization support to send emails from a Template

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.1-rc-1
    • Fix Version/s: 6.1
    • Component/s: Mail
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The goal is to add internationalization support :

      {{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" }, "language": "en"}))
      {{/velocity}}
      

        Attachments

          Activity

            People

            • Assignee:
              lyes Bandou Lyes
              Reporter:
              lyes Bandou Lyes
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: