5

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?

Alex V
  • 3,416
  • 2
  • 33
  • 52

3 Answers3

4

Sirmail does that, I believe: https://github.com/mflatt/sirmail

Robby
  • 41
  • 1
  • 1
    It probably just does MIME encoding manually, which as Chris pointed out is how it must be done if there is no module. – Alex V Nov 23 '12 at 03:43
2

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.

C. K. Young
  • 219,335
  • 46
  • 382
  • 435
0

This isn't an exclusively-racket solution, but the Racket API for mutt might help you achieve what you're ultimately looking to accomplish.

Jason Hemann
  • 327
  • 1
  • 12