Код: Выделить всё
'driver' => 'smtp',
'host' => 'a2plcpnl0296.prod.iad2.secureserver.net;a2plcpnl0296.prod.iad2.secureserver.net',
'port' => 587,
'from' => ['address' => 'contact@theventuregame.com', 'name' => 'The Venture Game TM'],
'encryption' => 'tls',
'username' => 'xxx',
'password' => 'yyy',
'pretend' => false,
< /code>
Когда я пытаюсь отправлять электронную почту, используя эти Conf, ошибка показывает, как ниже:
Connection не может быть установлено с помощью хоста A2Plcpnl0296.prod.iad2.secureserver.net; a2plcpnl0296.prod.iad2.secureserver.net [php_network_getdresses: getAdfo viseDINFO. № 0]. $this->mail = new PHPMailer;
$this->mail->isSMTP(); // Set mailer to use SMTP
$this->mail->Host = 'a2plcpnl0286.prod.iad2.secureserver.net;a2plcpnl0286.prod.iad2.secureserver.net'; // Specify main and backup SMTP servers
$this->mail->SMTPAuth = true; // Enable SMTP authentication
$this->mail->Username = 'xxx'; // SMTP username
$this->mail->Password = 'yyy'; // SMTP password
$this->mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$this->mail->Port = 587; // TCP port to connect to
$this->mail->From = 'contact@theventuregame.com';
$this->mail->FromName = 'The Venture Game TM';
< /code>
Как вы можете видеть в вышеуказанном коде, у меня есть: < /p>
$this->mail->SMTPAuth = true;
Есть предложения?
Подробнее здесь: https://stackoverflow.com/questions/347 ... vel-5-0-33