send attachment bigger than limit

0

Hi all, we are in progress of migration from //other emailing service// to Amazon SES.

Right now all our attachments fit into the limit, but once we migrate fully to Amazon SES most of them will be above the limit and thus can't be sent through SES. Thus I came here to find out what is the best practise to handle this.

We already have another workflow based on custom python code that stores certain files in google drive; so theoretically we can improve the workflow to give file access to the list of recipients through the link generated.

Actually our teamlead suggested to find a way to keep all components of this workflow in Amazon. My guess is that we could save files into S3 bucket and have some link generated or just create separate folders to restrict access for different recipients groups and create separate S3 credentials to access them. In order to make it user friendly as much as possible, email should contain the link to click and the file should be opened without additonal actions. To clarify just in case, our email recipients don't have AWS accounts / separate S3 accounts etc yet.

Could you please provide your suggestions? Please advise.

asked 2 years ago1362 views
2 Answers
2

You can do this by generating a pre-signed URL to the object stored in S3 and send it with the email.

Generating the URL itself is quite simple. You mentioned Python, here's a snippet using Boto3 Python (also documented in the link I shared)

import boto3
url = boto3.client('s3').generate_presigned_url(
    ClientMethod='get_object', 
    Params={'Bucket': 'BUCKET_NAME', 'Key': 'OBJECT_KEY'},
    ExpiresIn=3600)
AWS
answered 2 years ago
0

Hello,

Amazon Simple Email Service (Amazon SES) customers can now request a limit increase to send and receive emails with a message size of up to 40MB.

https://aws.amazon.com/about-aws/whats-new/2021/09/amazon-ses-emails-message-40mb/ https://docs.aws.amazon.com/ses/latest/DeveloperGuide/quotas.html

AWS
SUPPORT ENGINEER
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions