| 
...
 | 
...
 | 
@@ -48,6 +48,8 @@ class Mail { | 
| 
 | 
 | 
         $this->username = $email;
 | 
| 
 | 
 | 
         $this->password = $password;
 | 
| 
 | 
 | 
         $this->server = $imap;
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $this->client = new Imap();
 | 
| 
 | 
 | 
     }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
...
 | 
...
 | 
@@ -59,7 +61,6 @@ class Mail { | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     public function login($pass_err=true):int {
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $this->client = new Imap();
 | 
| 
 | 
 | 
         // 处理url
 | 
| 
 | 
 | 
         $host = MailFun::getHostPort($this->server,993,'ssl://');
 | 
| 
 | 
 | 
         try {
 | 
...
 | 
...
 | 
 |