On 05/11/2018 08:18 PM, Graeme Geldenhuys via Lazarus wrote: > On 2018-05-11 01:12, brian wrote: >> I omitted to put in my original post that I'm running 64-bit Ubuntu >> Studio. All the Indy examples I've been able to find seem to require >> Windows DLLs to implement SSL/TLS. > > It works just fine under Windows, Linux and FreeBSD too. I've testing > them all. On Linux and Windows it uses the OpenSSL libraries - which > normally comes standard with the system. > > To save you some trouble, I've attached a fully working console demo. > Edit the config.ini to match your details. Also edit the SMTP host name > inside the program unit. Sending emails via Gmail requires a extra step > - you need to log into your Gmail with a Web Browser and under security > settings, authenticate the "unknown device". When the console app gives > an error on the first run, it will output URL you can use to get to that > settings page (thanks Google). > > The "IndySecureMailClient.pas" implements a wrapper class for Indy's > SMTP and SSL handling making it super easy to use. The wrapper class in > fact adds all Indy's abilities of encryption for convenience. Indy rocks!!! > > I hope that helps. >
Thank you. I'll take a close look at it all over the weekend. I much prefer this sort of solution to trying to call one of the Linux 'mail from command line' utilities. Brian. -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus