Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional accounts #166

Merged
merged 9 commits into from
Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ boolean sendMail(ExtendedEmailPublisherContext context) {
context.getListener().getLogger().println(buf);

ExtendedEmailPublisherDescriptor descriptor = getDescriptor();
Session session = descriptor.createSession();
Session session = descriptor.createSession(from);
// emergency reroute might have modified recipients:
allRecipients = msg.getAllRecipients();
// all email addresses are of type "rfc822", so just take first one:
Expand Down Expand Up @@ -711,7 +711,7 @@ private MimeMessage createMail(ExtendedEmailPublisherContext context) throws Mes

String charset = descriptor.getCharset();

Session session = descriptor.createSession();
Session session = descriptor.createSession(from);
MimeMessage msg = new MimeMessage(session);

InternetAddress fromAddress = new InternetAddress(descriptor.getAdminAddress());
Expand Down
Loading