현재 codeigniter 및 ion auth 라이브러리를 사용하여 웹 사이트를 개발하고 있습니다.Codeigniter : 전자 메일 -> set_newline (..) 기능에 대한 설명을 찾고 있습니다.
ion auth의 표준 기능을 사용하여 사용자 비밀번호를 재설정하려고합니다. 도서관에서
2 개 기능이 있습니다 :forgotten_password($identity)
forgotten_password_complete($code)
두 함수 (경우 유효성 검사를 통해 간다에서) 사용자에게 이메일을 보내. 함수 자체는 작동하지만 내가받은 이메일은 깨졌습니다. 전자 메일 머리글은 전자 메일 본문의 일부로 표시됩니다. 이 깨진 이메일 모습입니다 : 내가 문제의 원인이되는 선을 추적 할 수 있었다 그러나
Date: Fri, 18 Nov 2011 23:36:32 +0100
From: "Example.com" <[email protected]>
Reply-To: "[email protected]" <[email protected]>
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_4ec6ddf0d26b9"
This is a multi-part message in MIME format.
Your email application may not support this format.
--B_ALT_4ec6ddf0d26b9
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
New Password for test_user
Your password has been reset to: 0774b65f5e
--B_ALT_4ec6ddf0d26b9
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html>
<body>
<h1>New Password for test_user</h1>
=09
<p>Your password has been reset to: 0774b65f5e</p>
</body>
</html>
--B_ALT_4ec6ddf0d26b9--
: 나는 (이 줄을 주석 때
$this->ci->email->set_newline("\r\n");
기능 모두에 언급 위), 사용자 비밀번호를 재설정 할 때받은 이메일은 괜찮습니다.
누군가이 라인의 목적을 나에게 설명해 줄 수 있습니까? 라인을 주석 처리하여이 문제를 해결하는 것이 좋을지 모르겠습니까?
는 또한 동일하거나 적어도 비슷한 문제를 참조이 질문에 Problem sending email with Codeigniter - Headers sent in the message body
- 을 발견했다. 그들은 상당히 오래되었고 아직 답변을받지 못했기 때문에 새로운 것을 만들었습니다. 희망은 아무도 없습니다.