codeigniter를 사용하여 전자 메일을 보내려는 중입니다. 메시지가 여러 줄에 걸쳐 표시되도록하려고합니다.개행 문자가 개행 문자로 변환되지 않는 이유는 무엇입니까?
$address = $this->input->post('email');
$subject = 'Please complete your registration';
$message = 'Thanks for registering! \n To complete your registration, please click on (or copy and paste in your browser) the following link: ' . base_url(). "users/confirmRegistration/" . $confirmation_code; //note the '\n' after thanks for registering
$this->load->library('email');
$this->email->from('[email protected]', 'myname');
$this->email->to($address);
$this->email->subject($subject);
$this->email->message($message);
$this->email->send();
나는 "등록에 대한 감사"다음에 줄 바꿈에 도착하는 메일을 기대하지만, 대신에 내가 등록하는
감사를 얻을
! N
내가 함께 시도했다 (... 등 등) 등록을 완료하려면 \ 연구 \ n하지만 결과는 거의 동일합니다 : 등록
감사합니다! rn 완료 (등). 스트립 슬래시 기능이 적용된 것과 같습니다.
아이디어가 있으십니까?
그냥 시도 했습니까
? –