I looked at the net/smtp module which provides several functions for sending emails. However, it does not say anything about including attachments. I also used the search feature on the Racket documentation website to look for the word “attach” and nothing relevant was returned.
I have searched and searched, but to no avail. So, how do I attach files to emails in Racket?
Email attachments use MIME.
Unfortunately, there doesn’t seem to be a built-in module that will do MIME encoding. (There is one,
net/mime, for doing MIME decoding.)I’ve searched PLaneT too, and there, the closest library for that is
bzlib/mime, but there’s no documentation for it, so I can’t tell you if it will do the job or not.