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.<span></span><br><br>On Saturday, October 20, 2012, Daniel Force wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does anyone know how to send an image with an email? I can't find any<br>
documentation online.<br>
<br>
I can send the list-of-strings email via the following code just fine:<br>
<br>
(require (lib "smtp.ss" "net")<br>
(lib "dns.ss" "net")<br>
(lib "mzssl.ss" "openssl")<br>
(lib "head.ss" "net"))<br>
<br>
(smtp-send-message<br>
(dns-get-address (dns-find-nameserver) "<a href="http://smtp.gmail.com" target="_blank">smtp.gmail.com</a>") ; server-string<br>
"<a href="javascript:;" onclick="_e(event, 'cvml', 'dummy@gmail.com')">dummy@gmail.com</a>" ; from-string<br>
'("<a href="javascript:;" onclick="_e(event, 'cvml', 'joe@smoo.com')">joe@smoo.com</a>") ; to-list-of-strings<br>
(standard-message-header<br>
"<a href="javascript:;" onclick="_e(event, 'cvml', 'dummy@gmail.com')">dummy@gmail.com</a>"<br>
'("<a href="javascript:;" onclick="_e(event, 'cvml', 'joe@smoo.com')">joe@smoo.com</a>")<br>
'()<br>
'()<br>
"The subject is..."<br>
)<br>
`("Howdy, Just testing... " ) ;; message-list-of-strings/bytes<br>
#:port-no 465<br>
#:auth-user "dummy" ; for gmail don't include the @<a href="http://gmail.com" target="_blank">gmail.com</a><br>
#:auth-passwd " abc def ghi jkl " ; gmail special password that bypasses dual<br>
verification<br>
#:tcp-connect ssl-connect)<br>
<br>
Thanks,<br>
Dan<br>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</blockquote>