Removed dep on API
[ninja.git] / application / vendor / swiftmailer / preferences.php
blob0b9e4b1ffa953eac22ed54b63f9c2e08cd10301e
1 <?php
3 /****************************************************************************/
4 /* */
5 /* YOU MAY WISH TO MODIFY OR REMOVE THE FOLLOWING LINES WHICH SET DEFAULTS */
6 /* */
7 /****************************************************************************/
9 // Sets the default charset so that setCharset() is not needed elsewhere
10 Swift_Preferences::getInstance()->setCharset('utf-8');
12 // Without these lines the default caching mechanism is "array" but this uses
13 // a lot of memory.
14 // If possible, use a disk cache to enable attaching large attachments etc
15 if (function_exists('sys_get_temp_dir') && is_writable(sys_get_temp_dir()))
17 Swift_Preferences::getInstance()
18 -> setTempDir(sys_get_temp_dir())
19 -> setCacheType('disk');