Question

i'm currently trying to add to a software the capability to list unread emails in the user's inbox using imap. After having no success at all using indy10, I discovered synapse which seemed better for what I needed, but I can't find a way to get it working.

My problem is with the login (thus I think with the ssl configuration), I can't find a working combination of "FullSSL", "Sock.SSL.SSLType" and "AutoTLS", whetever I do the "Login()" function fails.

For the sake of testing, is any of you able to connect to gmail's imap server using synapse, and if yes how ?

Was it helpful?

Solution

Having just done this myself, I might recommend that you just follow the simple example on the Synapse HowTo http://synapse.ararat.cz/doku.php/public:howto:smtpsend

The only other thing would be that you need to download the openssl dll's and place the in your project folder.

IMHO .... I would recommend that you also consider looking at CleverComponents.com at their IMAP4 with built in SSL (not requiring OpenSSL, which has some licensing restrictions) and is completely NON-Blocking sockets.

OTHER TIPS

mfw is correct, but here's a clearer and more current answer.

Go to the page skamradt said and download the "Binaries" ZIP. From its Bin folder, copy these files into your EXE's 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;

For other SMTP servers / port 465:

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

This might also work for POP / port 995. It's how I got Synapse to send mail securely in Delphi 7 + Synapse Release 40 (2012-04-23)

I suggest Mailbee IMAP ActiveX from AfterLogic. I did the research when developing Gmail Keeper (a Gmail backup software), CleverComponnets' feature set seems good but their support is very badm they seem discontinued that promising component set, you can try to email them back and forth to see if there is anything changed since it's been a long time since I checked them last time, I indeed wish they continue their VCL.

On the other hand, afterlogic's support is really good, especially when the reasonable price is considered.

One-click to backup Gmail with labels to local disk (supports backup scheduling) http://GmailKeeper.com

You need these libraries in your program:

libeay32.dll 
ssleay32.dll
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top