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. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp
indy_SecureEmail.7z
Description: application/7z-compressed
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus