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

Failing to compute email subject from a template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.2-milestone-1
    • Component/s: Mail
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Calling the following doesn't do anything:

      {{velocity}}
            #set ($mailTemplateReference = $services.model.createDocumentReference('', 'XWiki', 'ResetPasswordMailContent'))
            #set ($mailParameters = {'language' : $xcontext.language})
            #set ($message = $services.mailsender.createMessage('template', $mailTemplateReference, $mailParameters))
      

      The error is that the "template" component implementation is not correct and is not registered for the DocumentReference generic.

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: