[Lazarus] Sending secure smtp email via Synapse

Ondrej Pokorny lazarus at kluug.net
Wed Sep 23 12:07:40 CEST 2015

On 23.09.2015 11:29, Richard Mace wrote:
> Hi All,
> I am trying to send secure SMTP email by using Synapse and Lazarus 
> 1.4.2 under Windows 7 and am not getting very far.
> I have followed the example on this page:
> http://wiki.freepascal.org/Synapse
> and am wondering whether I am missing some DLL's or something, as I 
> can't get it to work.
> When debugging through the code, the following code is not run as 
> SMTP.login returns false:
>     if SMTP.Login then
>     begin
>       result := SMTP.MailFrom(MailFrom, Length(MailData)) and
>          SMTP.MailTo(MailTo) and
>          SMTP.MailData(sl);
>       SMTP.Logout;
>     end;
> I am currently trying to send via smtp.gmail.com 
> <http://smtp.gmail.com> on port 465, but I'll need to allow the option 
> in my application for any SMTP server to be used.
> I have "ssl_openssl" in my uses, but I haven't downloaded any DLL(s)?
> Could anybody point me in the right direction please?
> Many thanks
> Richard

Yes, you need ssleay32.dll and libeay32.dll

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150923/f8ac3585/attachment-0003.html>

More information about the Lazarus mailing list