SMTP attachment from S3Bucket

I'm attempting to upload a file to our s3 bucket and then use SMTP to send an e-mail with that attached file.

It doesnt really matter which order it happens in, the problem I'm running into is fileinput is required for SMTP, but cannot be used for s3uploads with randomly generated names which is an unfortunate requirement in this case.

Hi @stevenhdsdoor! Where is the random generation for your file names currently happening?

at the time of this post the random file generation was happening inside the S3 button, we pivoted and have made it work using sendgrid instead