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

    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: