IMAP + TLS / SSL with synapse?

I'm currently trying to add the ability to list unread messages in a user box using imap to the software. Having no success using indy10, I found a synapse that seemed better for what I needed, but I can’t find a way to make it work.

My problem is with the login (thus, I think that with the ssl configuration), I can not find the combination of "FullSSL", "Sock.SSL.SSLType" and "AutoTLS", that is, "Login" () "does not work.

For testing, any of you can connect to the gmail imap server using the synapse, and if so, how?

+5
source share
4 answers

Having done this myself, I would recommend that you simply follow a simple example in Synapse HowTo http://synapse.ararat.cz/doku.php/public:howto:smtpsend

The only thing you need is to download the openssl dlls and put them in the project folder.

IMHO .... I would recommend that you also consider looking for CleverComponents.com on your IMAP4 with built-in SSL (not requiring OpenSSL, which has some licensing restrictions) and completely non-blocking sockets.

+4
source

mfw is correct, but here is a clearer and more accurate answer.

Go to the skamradt page and download the "Binaries" ZIP archive. From the Bin folder, copy these files to the EXE folder:

libssl32.dll
libeay32.dll

In your DPR add

uses ssl_openssl;

For GMail / Port 587:

// support for upgrade session to TSL/SSL:
SMTP.AutoTLS := True ;
SMTP.FullSSL := False;

SMTP-/ 465:

// support for TSL/SSL tunnel:
SMTP.AutoTLS := False;
SMTP.FullSSL := True ;

POP/port 995. Synapse Delphi 7 + Synapse Release 40 (2012-04-23)

+2

MailBee IMAP ActiveX AfterLogic. Gmail Keeper ( Gmail), CleverComponnets , , , , , , , - , , , VCL.

, , .

One click to backup Gmail with tags to a local drive (supports backup) http://GmailKeeper.com

0
source

You need these libraries in your program:

libeay32.dll 
ssleay32.dll
0
source

All Articles