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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 7.3.0.GA
    • 7.2.0.GA
    • jBPM Core

      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.

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-ghu Gary Hu
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: