spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

Provide API To Customize Final Request

Open akefirad opened this issue 2 years ago • 1 comments

Type: Feature Provide APIs to customize final SES requests

Is your feature request related to a problem? Please describe. There are use cases for which developers need to have access to the request object before sending them. For example setting the configuration-set. As far as I can tell, there's no easy way to do this. One workaround would be to add an interceptor to the SES client, but that's not quite clean since it's gonna be a global interceptor, i.e. it cannot be message specific. The other use case (for which I cannot think of any workaround) is adding tags to the email message. This is essential to be able to identify email notifications while processing them.

Describe the solution you'd like A way to access to the request object before being sent out.

Describe alternatives you've considered As mentioned above, for some, an interceptor can be used, but it's not ideal. For others I cannot think of any workaround.

Additional context I'm not fully familiar with Java Mail API, but is it possible to make use of message headers for AWS SES request tagging?

Let me know if you need help with the implementation.

akefirad avatar Dec 03 '22 10:12 akefirad

@akefirad apologies for late reply. Feel free to drop a PR

maciejwalkowiak avatar Mar 01 '23 09:03 maciejwalkowiak