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

Failing to compute email subject from a template

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.2-milestone-1
    • 6.1
    • Mail
    • None
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: