imap 経由で peoplepc.com Web メールに接続するのに問題があります。コードは次のとおりです。
$host = "{imap.peoplepc.com:143/imap}";
$user = "User@peoplepc.com";
$pass = "Password";
try {
$mbox = imap_open($host, $user, $pass) or die("can't connect: " . imap_last_error());
if ( $mbox==true) {
//do this
} else {
//do this instead
}
}
catch (Exception $e) {
//handle exception
}
私が間違っていることを教えてください