AWS SES - incoming email saving attachment to S3 - amazon-web-services

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?

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

Related

How to bcc another recipient on an Amazon Cognito verification email

For legal reasons I need to BCC someone on my Cognito verification emails when someone signs up on my website. Is there a way to configure this in Amazon SES or Cognito? I have searched through the settings on both of the services and searched google but I haven't been able to find anything. I am wondering if maybe I should use SNS to trigger a welcome email with the compliance information after the user verifies their email, though I am still not sure if this is possible.
You will need to implement a Cognito custom email sender Lambda function. There's an example of that function using NodeJS at the above link. Having gone through this myself I would point out that it can only be done using NodeJS or Java due to the specific AWS encryption SDK needed to decode the email body in your Lambda function.
Inside that example Lambda function you can see the different event triggers the function has to handle. In the CustomEmailSender_SignUp trigger handler you would add your BCC when you send the email.
You would need to use the AWS SDK inside that code to send the emails using SES.

Amazon SES/Hotmail issue

Trying to send emails through Amazon SES as part of webform submission through gateway API. I have a verified email address which is my own. I have tried test emails and also through the lambda function which succeeds. But no email received. The SES console is telling me it has had no bounces. Am I missing any configuration information? is there something I'm missing or need to know? I have sent a support request to Microsoft to check on there end as well.

AWS Lambda to process Email attachment data?

So my objective is to feed hundreds/thousands of emails into an Amazon S3 bucket and what I would like to do is to be able to extract certain metadata from these emails(which contain attachments). I would like to extract data such as the Sender's email, the Date of email arrival, the Email content and the attachment file name ad extension.
I should note that I am using Zapier to trigger whenever a new email with an attachment comes in, to send that emails attachment data into an Amazon S3 bucket. Though i'm wondering if there's a more efficient way of processing email data using AWS Lambda in this case?
(In a nutshell, what im asking is, using the following 3 tools: Zapier/AWS Lambda/S3, how can I best extract email attachment data? Could you please describe the flow?)

How do you strip the attachments from AWS SES-SNS incoming emails?

My problem statement is as follows:
I have configured AWS SES to receive emails on a subdomain. SES then send a notification to our web application via SNS. Now, SNS has a 150kb limit and therefore any emails with an attachment of sive>150kb is bounced.
My question is:
Is there a way to strip the SES email of the attachments before dispatching through SNS?
One solution is to save the attachments in S3, but we have absolutely no use for the attachments at this point and would prefer not incurring additional S3 costs for nothing. I have looked at multiple AWS documentation and have not been able to find a solution. Any pointers will be greatly appreciated.
AFAIK, there is no direct way or configuration to achieve this. One workaround is to trigger a simple event driven Lambda function to extract an attachment from an email and discard it.

How to receive meeting requests through amazon SES

I am looking for a way to receive all of my company emails and locate those that contain meeting requests, then extract and store following meeting information in a dynamoDB
Creator
Start
End
Location
Attendees
Is this possible and if so is amazon SES the correct route? Can currently receive emails through SES and store in a S3 bucket, but the email is in MIME formate and not all of the meeting information is readily available.
Trying to avoid having to build fancy string passing functions to extract this information if possible.