Send a table in an email.
sean at pidigital.co.uk
Wed Sep 8 15:39:52 EDT 2021
I will take a look
Pi Digital Productions Ltd
eMail Ts & Cs
> On 8 Sep 2021, at 16:28, Mark Waddingham via use-livecode <use-livecode at lists.runrev.com> wrote:
> 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 Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode