Bonjour,

J'ai ce bout de code que j'ai récupéré ici (en lisant des posts sur ce forum) : https://www.developpez.net/forums/d2...-moi-debutant/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#######
# localhost pop3 with and without ssl
# $authhost="{localhost:995/pop3/ssl/novalidate-cert}";
# $authhost="{localhost:110/pop3/notls}";
 
# localhost imap with and without ssl
# $authhost="{localhost:993/imap/ssl/novalidate-cert}";
# $authhost="{localhost:143/imap/notls}";
# $user="localuser";
 
# localhost nntp with and without ssl
# you have to specify an existing group, control.cancel should exist
# $authhost="{localhost:563/nntp/ssl/novalidate-cert}control.cancel";
# $authhost="{localhost:119/nntp/notls}control.cancel";
 
######
# web.de pop3 without ssl
# $authhost="{pop3.web.de:110/pop3/notls}";
# $user="kay.marquardt@web.de";
 
#########
# goggle with pop3 or imap
# $authhost="{pop.gmail.com:995/pop3/ssl/novalidate-cert}";
$authhost="{imap.gmail.com:993/imap/ssl/novalidate-cert}";
# $user="username@gmail.com";
 
$user = 'xxx@gmail.com';
$pass = 'yyyy';
 
 
 
if ($mbox=imap_open( $authhost, $user, $pass ))
{
    echo "<h1>Connected</h1>\n";
    imap_close($mbox);
} else
{
    echo "<h1>FAIL!</h1>\n";
}
J'ai toujours FAIL.

Là c'est un test depuis ma BAL perso Gmail. Ensuite, je voudrais le faire avec les BAL hébergées chez Hostinger.

Qu'ai-je raté ?

Je galère depuis pas mal d'heures.

Merci pour votre aide.

Eddy