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

No information about the recipient user or its group from a mail template when using a UserAndGroupMimeMessage iterator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 6.4.4, 7.1
    • Mail
    • None
    • Unknown

    Description

      When using TemplateMimeMessageFactory in combination with UserAndGroupMimeMessageIterator, there is actually no way to have information in the template about the current recipient user of the message being generated.

      The TemplateMimeMessageFactory does not pass the only information it has in velocity variable about the target address (the only information it has), but more, the UserAndGroupMimeMessageIterator should provide the User object to the MimeMessageFactory, so that in the case of the TemplateMimeMessageFactory, more complete information about the recipient, like the fullname of the user could be accessible as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              softec Denis Gervalle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: