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.