MAMP free で動作する CI でメールを送信しようとしています。私のスクリプトは無限ループに遭遇し、何も起こっていません.ローカルホストからメールを送信するために特別に何かを設定する必要がありますか?
CI のメール設定は次のとおりです。
$config = array();
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = 465;
$config['smtp_user'] = '*****@gmail.com';
$config['smtp_pass'] = '******';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = '\r\n';
乾杯
編集:メールを送信するための私のコードは次のとおりです:
$config = array();
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = 465;
$config['smtp_user'] = '****';
$config['smtp_pass'] = '*****';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = '\r\n';
$this->email->initialize($config);
$this->email->from('****');
$this->email->to($email);
$this->email->subject($title);
$this->email->message($content);
$this->email->send();
error_log($this->email->print_debugger());
私のスクリプトの別の部分で定義された $title、$content、および $email vars を使用します。このようなことは心配しないでください。問題がこれらによるものではないことを確認済みです。