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?
Attach a fileOn your computer, go to Gmail. Click Compose. Choose the files you want to upload. Click Open.
Sending emails with attachments using SMTP requires you to build emails in MIME format.
Double click the original email and click Reply all, then the reply email will displayed in a new window; 3. Drag the attachment of the original message to the reply message.
Sirmail does that, I believe: https://github.com/mflatt/sirmail
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With