Christopher,
I have tested your mail solution and it works. Then I went on trying to add "inline" html image and "attachments". Both need to be formatted like inline="@files/filename.jpg" or attachments="@files/filename.jpg". The "inline" must be very easy. I suspect the "attachment" is probably a little more difficult because it needs multipart/form-data.
in urlfetch i found
"MultipartElements" -> {{"partName", "mime/type", {1, 2, 3, 4, 5}}}
can you help me solve how to do this?