Currently, we have to set the the FROM (i.e. the sender address) at the request level. This is problematic in clustered mode when multiple instances will retry the same request since they all end up using the same FROM address.
final EmailPopulatingBuilder emailBuilder = EmailBuilder.startingBlank()
.from(emailRequest.getFromAddress()) // <-- we have to set it here today
.to(emailRequest.getToAddress())
.withSubject(emailData.getSubject())
.fixingMessageId(emailMessageId);
We want to be able to set the FROM address to be the same for each mailer instance if they call different endpoints since we want the FROM address for each of those endpoints to be different.
MailerBuilder
.withFromAddress("mailer.level.from.address")
If there is a workaround that will help as well.
Thanks,