TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
swiftmailer
swiftmailer
lib
Preferences.php
Go to the documentation of this file.
1
<?php
2
3
/****************************************************************************/
4
/* */
5
/* YOU MAY WISH TO MODIFY OR REMOVE THE FOLLOWING LINES WHICH SET DEFAULTS */
6
/* */
7
/****************************************************************************/
8
9
$preferences
=
Swift_Preferences::getInstance
();
10
11
// Sets the default charset so that setCharset() is not needed elsewhere
12
$preferences
->setCharset(
'utf-8'
);
13
14
// Without these lines the default caching mechanism is "array" but this uses a lot of memory.
15
// If possible, use a disk cache to enable attaching large attachments etc.
16
// You can override the default temporary directory by setting the TMPDIR environment variable.
17
if
(@is_writable($tmpDir = sys_get_temp_dir())) {
18
$preferences
->setTempDir($tmpDir)->setCacheType(
'disk'
);
19
}
20
21
// this should only be done when Swiftmailer won't use the native QP content encoder
22
// see mime_deps.php
23
if
(version_compare(phpversion(),
'5.4.7'
,
'<'
)) {
24
$preferences
->setQPDotEscape(
false
);
25
}
Generated on Wed Nov 11 2015 01:52:01 for TYPO3 by
1.8.3