다음 코드를 사용하여 전자 메일을 보내고 있습니다. 그러나 "[email protected]"에서 내 이메일에 나타납니다. 이메일에 답장을 보내면 "[email protected]"으로 보내겠습니다. 내가 잘못했거나 잘못했는지 알 수 없습니다. ?Codeigniter 메일이 올바르게 작동하지 않습니다.
$this->email->from('[email protected]','Malcom');
$this->email->reply_to('[email protected]','AWD');
$this->email->to('[email protected]');
$this->email->subject('Subject Mailer-Test');
$this->email->message('Lorem est email.');
$this->email->send();
$rc_email = $this->email->print_debugger();
나는 다음과 같은 디버깅 절차를 통해 이동하는 것이 좋습니다 다음과 같이
$this->email->from($this->input->post('email'), $this->input->post('thename'));
$this->email->reply_to($this->input->post('email'), $this->input->post('thename'));
$this->email->to('[email protected]');
$this->email->subject('New Feedback');
$this->email->message($this->input->post('message'));
$this->email->send();
나는 reply_to가 여기에 중복되어 있다고 생각한다. – NightMICU
$ this-> email-> from ($ this-> input-> post ('email')); $ this-> email-> reply_to ($ this-> input-> post ('email')) – Saleem
예외가 있다면? –