I reached out to retool support about the error when using attachments in the SMTP resource and was told it was a known bug and engineering is working on it.
We could prob achieve setting the attachments using temp state or something similar, but we need a working component to test.