我想在这里有两个答案,
Received: (from ssh-myuser@localhost)
SMTP配置
$config = [
'mailtype' => 'html',
'protocol' => 'smtp',
'wordwrap' => true,
'smtp_host' => 'smtp.example.com',
'smtp_user' => 'info@example.com',
'smtp_pass' => 'password',
'smtp_port' => '587',
'charset' => 'iso-8859-1',
];
SENDMAIL配置
$config = [
'mailtype' => 'html',
'protocol' => 'sendmail',
'mailpath' => '/usr/sbin/sendmail',
'wordwrap' => true,
'smtp_host' => 'smtp.example.com',
'smtp_user' => 'info@example.com',
'smtp_pass' => 'password',
'smtp_port' => '587',
'charset' => 'iso-8859-1',
];
请告知,错误的地方和需要做的事情。我相信公开ssh用户帐户不是一个好主意。