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.

4 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!

James Baker —

Would it be possible to get that as well? I'm am attempting to try and do the same thing and am having some issues. I'm very new to Python so I'm not quite understanding how to go about it.


Matillion Agent  

Laura Malins —

Hi James

Yes I’d be happy to. Can you please send me your email address to Apologies I can’t pick it up from this thread.


Post Your Community Answer

To add an answer please login