Sending email with TLS (via Outlook) from LC 6.7 based app...
benr_mc at cogapp.com
Fri Jul 16 13:46:09 EDT 2021
This is very interesting, thank you.
Thanks all - I now have four routes to investigate!
On 16/07/2021 16:55, Bob Sneidar via use-livecode wrote:
> So, yes you can set any windows device to operate as an SMTP relay. Server versions have this capability built in. You enable it in the features section of Server manager. You can then configure the local side to be an open relay not requiring auth or encryption, and configure the public side to do all the auth and encryption.
> Alternatively, and depending on the Office365 receive connectors configuration, you *should* be able to use the endpoint connector. Assuming my mail domain is slylabs.com, my endpoint connector would be slylabs-com.mail.protection.outlook.com.
> That system is in place precicely because Microsoft recognizes there are devices and applications that cannot use encryption, or have not or cannot be updated to the TLS 1.2 standard.
> Bob S
>> On Jul 16, 2021, at 07:08 , Ben Rubinstein via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 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.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> 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