How to stop IMAP notice error in php? -


i'm trying fetching email particular email account. when i'm adding correct email address , password works fine, when giving wrong details returning lots of notice , warning errors. added @ preventing errors, works errors hided not hiding, error not showing line number well. below code

$mbox = @imap_open("{mail.b*********n.com:143/novalidate-cert}", $semail, $spwd);             $mc = @imap_check($mbox);             $result = @imap_fetch_overview($mbox,"1:{$mc->nmsgs}",0);             if(isset($result)){                 foreach ($result $overview) {                     //echo "#{$overview->msgno} ({$overview->date}) - from: {$overview->from}                     //{$overview->subject}\n";                     $a = "from: {$overview->from}";                     $s =  explode('<',$a);                     if(isset($s[1])){                         //echo $s[1].'<br />';                         echo rtrim($s[1],'>').'<br />';                     }                 }             }             @imap_close($mbox); 

errors:

( ! ) notice: unknown: [authenticationfailed] authentication failed. (errflg=1) in unknown on line 0  ( ! ) notice: unknown: [authenticationfailed] authentication failed. (errflg=1) in unknown on line 0  ( ! ) notice: unknown: [authenticationfailed] authentication failed. (errflg=1) in unknown on line 0  ( ! ) notice: unknown: many login failures (errflg=2) in unknown on line 0 

can guide me why these errors showing , how can fix issue. appreciate.

have tried use

<? error_reporting(e_all & ~e_notice); ?> 

this allow php report except notice.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -