Yii Mail


I am using Yiimail as extention. Some times it generates errors like

"Failed to authenticate on SMTP server with username"

I am using smtp gmail and sometimes it gives error due to captcha.

Now, I want to check whether the mail send or is there any error appearing


Is there any way to hide these errors so that the remaining code runs properly.