mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +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
|
|
@ -178,13 +178,16 @@
|
|||
$db_config_file = $this->getConfigFile();
|
||||
if(file_exists($db_config_file)) @include($db_config_file);
|
||||
|
||||
if(!$db_info->time_zone) $db_info->time_zone = date("O");
|
||||
if(!$db_info->use_optimizer || $db_info->use_optimizer != 'N') $db_info->use_optimizer = 'Y';
|
||||
else $db_info->use_optimizer = 'N';
|
||||
if(!$db_info->time_zone) $db_info->time_zone = date("O");
|
||||
if(!$db_info->use_optimizer || $db_info->use_optimizer != 'N') $db_info->use_optimizer = 'Y';
|
||||
else $db_info->use_optimizer = 'N';
|
||||
if(!$db_info->qmail_compatibility || $db_info->qmail_compatibility != 'Y') $db_info->qmail_compatibility = 'N';
|
||||
else $db_info->qmail_compatibility = 'Y';
|
||||
|
||||
$this->_setDBInfo($db_info);
|
||||
|
||||
$GLOBALS['_time_zone'] = $db_info->time_zone;
|
||||
|
||||
$GLOBALS['_time_zone'] = $db_info->time_zone;
|
||||
$GLOBALS['_qmail_compatibility'] = $db_info->qmail_compatibility;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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