Hi, Can anyone offer guidance on how to send a multipart/alternative mail with hato? I'm trying to send HTML mail with a text/plain alternative.
For my proof of concept I tried: ----- (send-mail From: "Pat Andrews <[email protected]>" To: "Andy Pandy <[email protected]>" Subject: "Hato Test" Charset: "ISO-8859-1" Attachments: '((Body: "Hello this is the first attachment") (Body: "This is the second attachment"))) ----- This results in a multipart mail where both parts show up in my mail reader. I then tried: ----- (send-mail From: "Pat Andrews <[email protected]>" To: "Andy Pandy <[email protected]>" Subject: "Hato Test" Charset: "ISO-8859-1" Content-Type: "multipart/alternative" Attachments: '((Body: "Hello this is the first attachment") (Body: "This is the second attachment"))) ----- This results in a rather corrupt message where the whole body of the message appears in the mail reader, including all the MIME Multipart stuff. hato seems to generate MIME messages with a single boundary string. It looks like multipart/alternative requires a second boundary string such that the message contains a single multipart/alternative part which itself contains MIME parts for the alternatives thus: ------=_Part_2817384_1209246488.1365015903578 Content-Type: multipart/alternative; boundary="----=_Part_2817385_902651438.1365015903578" ------=_Part_2817385_902651438.1365015903578 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 First alternative... ------=_Part_2817385_902651438.1365015903578 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 Second alternative... ------=_Part_2817385_902651438.1365015903578-- ------=_Part_2817384_1209246488.1365015903578 ...further parts, attachments, etc. Is there any code that will generate this or will I have to write it myself? Can anyone offer any guidance on how to best go about it? Many thanks. Regards, @ndy -- [email protected] http://www.ashurst.eu.org/ 0x7EBA75FF _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
