I put up an example taken from my code for Digital Ricoeur in response to an old mailing list thread <https://groups.google.com/d/topic/racket-users/thv2fQnd0zA/discussion>. It is not ready for general-purpose use—in particular, I basically only have to deal with trusted input—but here it is: https://github.com/LiberalArtist/multipart-writing-examples
That thread also has some discussion about what a good package might want to address and some slightly annoying differences between "normal" mime and "multipart/form-data" used for web forms. -Philip On Thu, Apr 9, 2020 at 10:25 AM Matthew Flatt <[email protected]> wrote: > At Thu, 9 Apr 2020 07:09:21 -0700 (PDT), Brian Adkins wrote: > > I looked at the net/mime library, but, as the title of the doc page > > suggests, it seemed to only be about decoding, not creating: > > > > https://docs.racket-lang.org/net/mime.html?q=net%2Fmime > > Ah, right. I think I've made this mistake before. > > > Encoding is be built into SirMail (very old code): > > https://github.com/mflatt/sirmail/blob/master/sirmail/sendr.rkt#L136 > > It would make sense to have a better version of this in a package, of > course. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/5e8f303a.1c69fb81.69759.d940SMTPIN_ADDED_MISSING%40gmr-mx.google.com > . > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAH3z3gaDENPvEyzQ5jgD1ymm4Vep22kYSiTf2PNtDvLvQrTfOA%40mail.gmail.com.

