0

I m trying to use imap_open to open a remote mail box. When the password is incorrect it tries a number of time and gives warning and fails.

Where as php list if imap_open is not successfully it will return false.

This is not happening.

Please help

PHP Notice: Unknown: Retrying CRAM-MD5 authentication after incorrect password or account name (errflg=1) in Unknown on line 0 PHP Notice: Unknown: Retrying CRAM-MD5 authentication after incorrect password or account name (errflg=1) in Unknown on line 0 PHP Notice: Unknown: Kerberos error: No credentials cache found (try running kinit) for mail.server.com (errflg=1) in Unknown on line 0 PHP Notice: Unknown: Retrying PLAIN authentication after incorrect password or account name (errflg=1) in Unknown on line 0 PHP Notice: Unknown: Retrying PLAIN authentication after incorrect password or account name (errflg=1) in Unknown on line 0 PHP Notice: Unknown: Can not authenticate to IMAP server: too many failed logins (errflg=2) in Unknown on line 0

Maanas Royy
  • 1,522
  • 1
  • 17
  • 30

2 Answers2

0

The only solution appears to me is to disable the notice of suppress such notice with @ in php

Maanas Royy
  • 1,522
  • 1
  • 17
  • 30
-1

my workaround:

error_reporting(E_ALL ^ E_NOTICE);
Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
Clemens
  • 116
  • 5