Version 1.2 of the mail stack

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Mon Mar 1 19:09:18 EST 2021


Hi Rick,

if i recall it correctly i used the templatefield for that in LC server.

So set the text of the templatefield and then use that in the mimeEncodeFieldAsMIMEMultipartDocument.

e.g.
put "test" into the templatefield
put mimeEncodeFieldAsMIMEMultipartDocument(the long id of the templatefield) into tBody


LC Server does not include the Mime library, so you'll need to copy the complete Mime library script to your web server and include it in your script.

It's late here and i am off for some sleep now. So do not wonder when i reply later.

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 02.03.2021 um 00:33 schrieb Rick Harrison via use-livecode <use-livecode at lists.runrev.com>:
> 
> Hi Matthias,
> 
> I tried it out and the stack works fine.
> 
> Now I am in the process of trying to convert it
> so I can use the process directly in my LC Server.
> 
> Of course field values now become variable values.
> 
> Everything seems fine except:
> 
> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "email_message") into tBody
> 
> How do I get he long id of my VariableEmailMessage into tBody?
> 
> Ideas?
> 
> Rick
> 
> 
>> On Mar 1, 2021, at 12:38 PM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Rick,
>> 
>> do you mean the stack lcMailAndFtp.livecode?
>> 
>> The original stack was created by Charles Warwick, the developer of the tsNet externals.
>> If i remember correctly, i added the FTP part or so and put that modified stack as lcMailAndFtp.livecode online.
>> 
>> You could look here for a newer version (1.2) of Charles mail sample stack.
>> https://www.techstrategies.com.au/tsnet-resources/
>> 
>> Although the version 1.2 of the mail stack is more current then the one from my site, it still is a little bit "outdated".
>> There is a new command in LC available called mimeEncodeAsMIMEEmail which would make some of the code in the sample stack obsolete if it would be used. But the sample stack from Techstrategies should still work.
>> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list