Details
-
Feature Request
-
Resolution: Done
-
Major
-
7.2.0.GA
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.