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.

2개 답변
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
답변함 2년 전
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
지원 엔지니어
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠