If i want to receive email from gmail server, what should I do? Should I derive from POP3ClientSession
as SecureSMTPClientSession(1.3.7 branch) does? Is that job complicated?
Thanks.
int SecureSocketImpl::handleError(int rc)ERR_error_string_n(lastError, buffer, sizeof(buffer));Poco::Net::SocketAddress sa("mailhost", 995);
Poco::Net::SecureStreamSocket sss(sa);
Poco::Net::POP3ClientSession pops(sss);
pops.login("user", "pass");
...
SharedPtr<InvalidCertificateHandler> ptrCert = new AcceptCertificateHandler(false);
Context::Ptr ptrContext = new Context(Context::CLIENT_USE, "", "", "rootcert.pem", Context::VERIFY_RELAXED, 9, false, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH");
SSLManager::instance().initializeClient(0, ptrCert, ptrContext);
Users browsing this forum: No registered users and 1 guest