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
Ondrej
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus