Login.php
392 字节
<?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;
}
}