Login.php
604 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace Lib\Imap\Request;
/**
* 登录
* @author:dc
* @time 2024/9/13 17:09
* Class Login
* @package Lib\Imap\Request
*/
class Login extends Request{
public function exec(): static
{
$pwd = addcslashes($this->imap->config->getPassword(),'"');
$this->cmd('LOGIN "%s" "%s"',$this->imap->config->getEmail(),$pwd);
return $this;
}
/**
* @param string $msg
* @return $this
* @author:dc
* @time 2025/3/14 10:16
*/
public function setMsg(string $msg){
$this->message = $msg;
return $this;
}
}