spring-cloud-aws
spring-cloud-aws copied to clipboard
spring-cloud-aws-ses: allow setting fromArn on SendRawEmail operation
Type: Feature
Is your feature request related to a problem? Please describe.
Similar to https://github.com/awspring/spring-cloud-aws/issues/1006 it would be nice to also specify the fromArn on a per client basis.
It seems like perfectly fine use case that if we use SimpleEmailServiceJavaMailSender and as such SES client we can control which config set is used. It is impossible because org.springframework.cloud.aws.mail.simplemail.SimpleEmailServiceJavaMailSender#send(javax.mail.internet.MimeMessage...) does not expose any way to inject fromArn into SendRawEmailRequest object coming from AWS SDK.
Describe the solution you'd like
I want to be able to specify fromArn.
Describe alternatives you've considered
Subclassing SimpleEmailServiceJavaMailSender and overriding entire send method.