0
PHP:CodeIgniterの://smtp.googlemail.comエラー
$config = Array(
'useragent' => 'CodeIgniter',
'mailpath' => '/usr/bin/sendmail',
'protocol' => 'smtp',
'smtp_host' => 'mail.kakaproperty.com',
'smtp_port' => 587,
'smtp_user' => '[email protected]',
'smtp_pass' => '******',
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->set_mailtype("html");
$this->email->from('[email protected]'); // change it to yours
$this->email->to($data['email']);// change it to yours
$this->email->subject('Welcome to kaka property');
$this->email->message("New message by kaka property");
if($this->email->send())
{
echo 1;
}
else
{
$this->email->print_debugger();
}
それは、SSLを接続することができないエラーを表示するなぜ誰もが私を助けてくださいすることができます//smtp.googlemail.com私はなぜkakaproperty.comをホストとして使用していますか?私は設定フォルダからemail.phpを削除しました。
が私をスクラッチ:/smtp.gmail.com。あなたは、あなたがすぐにわかる()エラーが 'smtp_host' => '//smtp.googlemail.com SSL' で試す出た場合、コード
の下に使用することができます前のコメント、ドン465をポートとして使用しない –
@AntonisTsimourtos私は465を試しましたが、動作しませんでした。 –
資格情報は正しいですか? 'stmp_user'が正しいかどうかわかりません。 –