【发布时间】:2016-07-29 23:01:23
【问题描述】:
我有一个带有 Debian 的 Kimsufi (OVH) 服务器。
我想使用PHPMailer library 发送 SMTP 电子邮件。
我不知道用户名和密码应该是什么。
$this->mail->isSMTP(); // Set mailer to use SMTP
$this->mail->CharSet = 'UTF-8';
$this->mail->Host = 'my server ip'; // Specify main and backup SMTP servers
$this->mail->SMTPAuth = true; // Enable SMTP authentication
$this->mail->Username = ''; // SMTP username
$this->mail->Password = ''; // SMTP password
$this->mail->SMTPSecure = ''; // Enable TLS encryption, `ssl` also accepted
$this->mail->Port = 25; // TCP port to connect to
如何获取所需的用户名和密码?
【问题讨论】:
标签: php email smtp debian phpmailer