mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
qmail등 비표준 개행문자 사용 mta를 지원하기 위한 qmail_compatibility 변수를 db.config.php에 추가하고 관리자 페이지에서 설정토록 함
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4153 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c6815f9a1a
commit
93a6bd053c
6 changed files with 54 additions and 35 deletions
|
|
@ -61,27 +61,29 @@
|
|||
}
|
||||
|
||||
function send() {
|
||||
$boundary = '----=='.uniqid(rand(),true);
|
||||
$boundary = '----=='.uniqid(rand(),true);
|
||||
|
||||
$eol = $GLOBALS['_qmail_compatibility'] == "Y" ? "\n" : "\r\n";
|
||||
|
||||
$headers = sprintf(
|
||||
"From: %s\r\n".
|
||||
"MIME-Version: 1.0\r\n".
|
||||
"Content-Type: multipart/alternative;\r\n\tboundary=\"%s\"\r\n\r\n".
|
||||
"From: %s".$eol.
|
||||
"MIME-Version: 1.0".$eol.
|
||||
"Content-Type: multipart/alternative;".$eol."\tboundary=\"%s\"".$eol.$eol.
|
||||
"",
|
||||
$this->getSender(),
|
||||
$boundary
|
||||
);
|
||||
|
||||
$body = sprintf(
|
||||
"--%s\r\n".
|
||||
"Content-Type: text/plain; charset=utf-8; format=flowed\r\n".
|
||||
"Content-Transfer-Encoding: base64\r\n".
|
||||
"Content-Disposition: inline\r\n\r\n".
|
||||
"--%s".$eol.
|
||||
"Content-Type: text/plain; charset=utf-8; format=flowed".$eol.
|
||||
"Content-Transfer-Encoding: base64".$eol.
|
||||
"Content-Disposition: inline".$eol.$eol.
|
||||
"%s".
|
||||
"--%s\r\n".
|
||||
"Content-Type: text/html; charset=utf-8\r\n".
|
||||
"Content-Transfer-Encoding: base64\r\n".
|
||||
"Content-Disposition: inline\r\n\r\n".
|
||||
"--%s".$eol.
|
||||
"Content-Type: text/html; charset=utf-8".$eol.
|
||||
"Content-Transfer-Encoding: base64".$eol.
|
||||
"Content-Disposition: inline".$eol.$eol.
|
||||
"%s".
|
||||
"--%s--".
|
||||
"",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue