Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pop:=tidpop3.Create(nil);
- pop.Host := 'pop.gmail.com';
- pop.Port := 995;
- pop.Username := MyUserName;
- pop.Password := MyPassword;
- pop.ConnectTimeout := 10000;
- ssl := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
- ssl.SSLOptions.Method := sslvTLSv1;
- ssl.SSLOptions.Mode := sslmClient;
- pop.IOHandler := ssl;
- pop.UseTLS := utUseImplicitTLS;
- pop.Connect;
- num:=pop.CheckMessages;
- pop.Disconnect;
- pop.Free;
- ssl.Free;
Add Comment
Please, Sign In to add comment