I think you'll need to make the body be in the form of a multipart message to do attachments. If you also want the images to be inline, you'll need an HTML part laying out where.
On Saturday, October 20, 2012, Daniel Force wrote: > Does anyone know how to send an image with an email? I can't find any > documentation online. > > I can send the list-of-strings email via the following code just fine: > > (require (lib "smtp.ss" "net") > (lib "dns.ss" "net") > (lib "mzssl.ss" "openssl") > (lib "head.ss" "net")) > > (smtp-send-message > (dns-get-address (dns-find-nameserver) "smtp.gmail.com") ; server-string > "[email protected] <javascript:;>" ; from-string > '("[email protected] <javascript:;>") ; to-list-of-strings > (standard-message-header > "[email protected] <javascript:;>" > '("[email protected] <javascript:;>") > '() > '() > "The subject is..." > ) > `("Howdy, Just testing... " ) ;; message-list-of-strings/bytes > #:port-no 465 > #:auth-user "dummy" ; for gmail don't include the @gmail.com > #:auth-passwd " abc def ghi jkl " ; gmail special password that bypasses > dual > verification > #:tcp-connect ssl-connect) > > Thanks, > Dan > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users >
____________________ Racket Users list: http://lists.racket-lang.org/users

