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

Missing some default Velocity Context bindings when sending a template mail

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      For example we should have $xwiki, the velocity tools, etc. What we cannot have it $doc since the mails are now sent from a separate thread. So if users want to use $doc they should it in the their code using the Mail Sender API as in:

      #set ($templateParameters = {'velocityVariables' : { 'name' : 'John', 'doc' : $doc }, 'language' : 'en', 'from' : 'localhost@xwiki.org'})
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            lyes Bandou Lyes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: