On 2021-09-08 11:02, Sean Cole (Pi) via use-livecode wrote:
Hi all

I'm trying to use the MIME encoder to send an email with a table in the
body. I have a field that has both plain text and a few lines that are
displayed as a table in the middle of it. I basically just turn on the v
and h lines and set tab stops.

mimeEncodeField... puts the text into the email body but does not seem to format out the table. Is there a way to get it to recognise the table or
some other way of getting the table to display correctly in the email?

So the mime library call you are talking about is super simple - it just dumps the htmlText of the field into the HTML (so is fine as long as its just simple formatting involved), and then looks for inline images and attaches them as other parts.

The code is in the mime extension (com.livecode.library.mime) and the handler in question (mimeEncodeFieldAsMIMEMultipartDocument) is built out of other public mime library APIs... It would be relatively straightforward to create your own version and customize the HTML output to your needs.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to