You could send out the emails with the command line tool curl using LC's shell 
function.

https://everything.curl.dev/usingcurl/smtp

So instead of calling the libSMTP library you create the email according to RFC 
to have correct smtp headers and sent it using curl through the shell() 
function.
That's the way how i did it at the time when tsNET was not yet released and i 
needed to send emails using TLS.

As 6.7.1 does not contain any of the mime library, you need to create the the 
raw email manually.

This lesson here
https://lessons.livecode.com/m/4070/l/8184-sending-emails-from-livecode-server-scripts

explains how to send emails from Livecode Server scripts. The 
Please have a look at the sections about 'Formatting Email Headers' and 'Adding 
Attachments'. That information should give you a clue how to create the data 
correctly.

Regards,

Matthias




> Am 16.07.2021 um 16:08 schrieb Ben Rubinstein via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> 
> A very venerable app (original version perhaps 15 years ago) is still running 
> on a client's Windows box, every night, processing data and emailing a report.
> 
> The email is sent using Shao Sean's libSMTP library, which has performed 
> faithfully for all these years. Unfortunately, the client's replacing their 
> local smtp server with outlook365.com - which requires TLS authentication - 
> which I don't believe libSMTP supports.
> 
> The current version of the app is built in LiveCode 6.7.11. There is a huge 
> amount of text to be processed, and - as you might imagine after this long 
> development, with regular changes and additions - the processing is very 
> complex. A few years ago I did look at rebuilding it in LC 8/9, but because 
> of the changes to unicode handling there was a lot of perturbation in the 
> data, and there wasn't time/budget to track all this down in order to get a 
> reasonable new version. I still occasionally need to make tweaks to the 
> processing, but I do that in my trusty LC 6.7.11.
> 
> So now I've hit a problem. There still isn't budget for a major exercise to 
> rebuild it in a modern version of LiveCode, so I can't just switch to using 
> tsNet.
> 
> Is it theoretically possibly to tweak libSMTP to work with TLS, or is there 
> some basic limitation with LC 6.7 that would make that impossible? Are there 
> any other libraries that work with TLS? Or (I'm not a Windows person) is 
> there some simple way I could set up a local SMTP server on the Windows box 
> that would accept the email from my LiveCode app and forward it to outlook365?
> 
> Any suggestions or experience gratefully received.
> 
> Ben
> 
> _______________________________________________
> 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


_______________________________________________
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