[cl-smtp-devel] Encoding issues

Leslie P. Polzer leslie.polzer at gmx.net
Wed Jul 30 09:04:40 UTC 2008


> Have a look at
> http://bknr.net/trac/browser/trunk/projects/bos/m2/mail-generator.lisp#L53,
> which is the mail sending routine in one of my projects.  It works
> with non-ASCII characters.  You may be able to adopt it for your
> purposes.

Thanks, that helped a lot! For me, it's now:

  (cl-smtp:with-smtp-mail (smtp "localhost" from (list to))
    (format smtp "Subject: ~A
Content-Type: text/plain; charset=ISO-8859-1
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable

~A" subject (cl-qprint:encode body)))

I haven't managed to use a charset different from latin1
(like UTF8 or latin15), but that's okay for the time being.

  Leslie




More information about the cl-smtp-devel mailing list