Bonjour,
J'ai un soucis de connexion imap depuis mon serveur, mais impossible de savoir pourquoi, sachant qu'en local, ça fonctionne correctement.
1 2 3 4 5 6 7 8
| <?php
if(function_exists (imap_open)) {
$this->mail = imap_open('{imap.gmail.com:993/imap/ssl/}'. $this->folder, $this->user, $this->password)
or die('Connexion impossible : '. imap_last_error() .' '. phpinfo());
# Réponse :
# Connexion impossible : Can't open mailbox {imap.gmail.com:993/imap/ssl/}ERROR: invalid remote specification
?> |
Si quelqu'un aurait une idée, je suis preneur.
Merci
Florent.
Voici la config initial du serveur :
- CentOS
- Phpinfo() :
--- IMAP c-Client Version 2004
--- OpenSSL support enabled
--- OpenSSL Library Version OpenSSL 0.9.7a Feb 19 2003
--- OpenSSL Header Version OpenSSL 0.9.8e 23 Feb 2007
- telnet imap.gmail.com 993
--- Trying 74.125.129.108...
--- Connected to imap.gmail.com (74.125.129.108).
- openssl s_client -connect imap.gmail.com:993
--- CONNECTED(00000003)
--- depth=1 /C=US/O=Google Inc/CN=Google Internet Authority
--- (...)
--- * OK Gimap ready for requests from 209.200.236.56 df1if3956666pbc.228
- compte gmail
--- Accès IMAP :
--- État : IMAP est activé
Partager