I am trying to read my Gmail account using Zend_Mail. The request just seems to time out. Is there a problem with mine $config?
$config
public function indexAction() { $config = array( 'host'=> 'pop.gmail.com', 'user' => 'xxx', 'password' => 'xxx', 'ssl' => 'tls', 'port' => 995); $mail = new Zend_Mail_Storage_Pop3($config); $maxMessage = $mail->countMessages(); $this->view->maxMessage = $maxMessage; $message = $mail->getMessage(1); $this->view->message = $message; }
I think you need to use SSL as an ssl type. Also, do you use your full email address as your username?
$config = array('host'=> 'pop.gmail.com', 'user' => 'xxx', 'password' => 'xxx', 'ssl' => 'SSL', 'port' => 995);
You do not need to enter ssl and port in case of gmail. your config should be
$config = array('host'=> 'pop.gmail.com', 'user' => 'xxx', 'password' => 'xxx');
Source: https://habr.com/ru/post/1780909/More articles:Java kills or terminates a thread - javaLocal variables and stack - c #How to fix the "Compile Error: Object Required" error? - vbaHow to programmatically get GDI and User Object count in Delphi? - winapiPermission error while trying to programmatically connect to TFS 2010 - .netHow to convert special characters in utf-8 format when creating an xml file in ColdFusion - coldfusionNetbeans (Java): работает 3-я библиотека, но как я могу скомпилировать ее в банку? - javaHow can I perform operations with large numbers that cannot be stored in a single variable - javaThe jQuery function called in the .bind handler works on the finished document - jqueryHow to specify the file: // path to svn on Windows (redmine)? - windowsAll Articles