php - imap_open failed in my server but works in local

$mailboxes =
                'label' => 'Mail',
                'mailbox' => '{}INBOX',
                'username' => "[email protected]",
                'password' => "mypassword"

imap_open($mailboxes['mailbox'], $mailboxes['username'], $mailboxes['password'])

I have caught this error when I useimap_last_error() :

"Connection failed to,143: Connection timed out"

But when I have tried it in localhost (Wampserveur), everything works fine.

Note:extension=php_imap.dll is enable on my serveur.

People are also looking for solutions to the problem: pdo - 'PDOException' with message 'SQLSTATE[07002]: [Microsoft][SQL Server Native Client 11.0]COUNT field incorrect or syntax error' in .../db.php:46


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.