即時得到一堆每次我嘗試發送電子郵件:無法在笨發送AUTH LOGIN命令錯誤的
hello:
The following SMTP error was encountered:
Failed to send AUTH LOGIN command. Error:
from:
The following SMTP error was encountered:
to:
The following SMTP error was encountered:
data:
The following SMTP error was encountered:
The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter
Date: Sun, 1 Jul 2012 20:47:47 +0000
From: "Rapphie"
Return-Path:
To: [email protected]
Subject: =?iso-8859-1?Q?Email_Test?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
// ..
以及我看不出什麼毛病,但說真的,也許是我在想念大的東西..這是我在我的控制器..
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => '[email protected]',
'smtp_pass' => '****',
'mailtype' => 'html',
'charset' => 'iso-8859-1'
);
$this->load->library('email', $config);
$this->email->from('[email protected]','Rapphie');
$this->email->to($email,'Charmie');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo $this->email->print_debugger();
我不使用「SSL://smtp.gmail.com」因爲它給了我一個錯誤,如本:
fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl"
你看不出什麼錯,沿「線不必SMTP郵件服務配置的「? –
現在你提到它..我如何配置這樣的?我會先研究 – Charmie
你有沒有想過這個問題?你能發佈你的解決方案嗎? – Catfish