1
0

* Issue #248: Add $serendipity['forceBase64']=true option (can be set

in serendipity_config_local.inc.php) to make Serendipity *not*
      use 8bit Imap functions for sending mail, for MTAs that behave
      erradically otherwise.

References #248
This commit is contained in:
Garvin Hicking
2015-01-27 14:45:06 +01:00
parent 859e66d8af
commit a99156a21d
3 changed files with 36 additions and 44 deletions

View File

@ -533,7 +533,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
$maildata['headers'][] = 'Auto-Submitted: auto-generated';
if (LANG_CHARSET == 'UTF-8') {
if (function_exists('imap_8bit')) {
if (function_exists('imap_8bit') && !$serendipity['forceBase64']) {
$maildata['headers'][] = 'Content-Transfer-Encoding: quoted-printable';
$maildata['message'] = imap_8bit($maildata['message']);
} else {