Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Send an email with an attachment


Is it possible to send out an email with an attachment; the attachment being a csv from an S3 bucket?

The only thing that I could find is using python script; is this the only way to accomplish this task? Assuming it is even possible.

Does anyone know any working examples?

Thanks in advance.

2 Community Answers

Matillion Agent  

Laura Malins —

Hi Deivis

I don’t know of a way to directly send an attachment from an S3 bucket, but you could put a link to the file in S3 into a variable and send that as part of the email in the SNS component.

Another option is, as you say, to use Python but you’ll still need to use boto to download the file to send it as an attachment. I can send you a job with a python script to send an email and it won’t be a big step to add an attachment in?


Deivis Gudisauskas —

Thank for the replay Laura; please do!

Post Your Community Answer

To add an answer please login