Skip to content

Feature: be able to set defaults and overrides on the Mailer level, rather than email or global level #383

@jllanes3

Description

@jllanes3

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,

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions