Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SES - incoming email saving attachment to S3

I have the following use case:

  • Once and incoming email with attachment is received (SES)
  • Invoke a lambda function to Extract that email's attachment only and save to S3

I've looked at SES SDK (nodejs) and wasn't successful in finding an API that could help with this.

Is this supported out-of-the-box using SES SDK (nodejs, java)? Or one has to read the entire message and then figure out the attachment portion?

Has anyone with similar requirements been able to implement this?

like image 372
George W Avatar asked Jul 14 '16 19:07

George W


1 Answers

This is not supported by the SES sdk. You will have to parse the raw MIME format and extract the file. Take a look at this answer on how you can try that with Lambda

like image 179
Mihai Avatar answered Oct 16 '22 18:10

Mihai