Daniele Maila Cebin
Sep 6, 2018 · 1 min read

Great article! It helps me a lot!
A question: It's possible to handle attachments from S3 and base64 encoded string in same email using this approach? I was wondering if it's possible using flags, such as "from_s3":true|false in attachments attribute like following example:

“attachments”: [ {
“from_s3”: false,
“filename”: “test.txt”,
“content”: “aGVsbG8gd29ybGQh”,
“encoding”: “base64”
}, {
“from_s3”: true,
“s3_bucket”: “my-bucket”,
“s3_key”: “s3file.txt”,
“filename”: “s3file.txt”
}]