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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.4.4, 7.1
    • Fix Version/s: None
    • Component/s: Mail
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated: