Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1854

add the feature to EmailWorkItemHandler to show a display name instead of the original sender's address

    Details

      Description

      The current EmailWorkItemHandler shows the original sender's email address. There's a need to mask this address with something else so that the original sender's address won;t show directly to the recipients.

      The original sender's address is specified by adding the Email WorkItemHandler, for example
      new org.jbpm.process.workitem.email.EmailWorkItemHandler("smtp.gmail.com", 587, "original_sernder@gmail.com", "password", true)

      This setting overrides the value specified for "From" variable defined in the email service task.

      The new feature raised in this jira proposes a change in the code:

      SendHtml.java:

      msg = new MimeMessage(session);
      msg.setFrom(new InternetAddress(from));

      ->

      msg = new MimeMessage(session);
      msg.setFrom(new InternetAddress(from, displayName));

      The displanyName could be passed to the EmailWorkItenHandler from the process/task.

      The outcome is the recipient will receive the email with the displayName instead of the original sender's address showing in the receiver field.

      The limitation is, if you hover the mouse on the displayName or click the displayName for details it would show the original sender's address anyway.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                ghjboss Gary Hu
                Tester:
                Gonzalo Muñoz Fernández
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: