summaryrefslogtreecommitdiff
path: root/protected/extensions/yii-mail/vendors/swiftMailer/preferences.php
diff options
context:
space:
mode:
authorTristan Zur <tzur@ccwn.org>2012-06-11 18:25:19 +0200
committerTristan Zur <tzur@ccwn.org>2012-06-11 18:25:19 +0200
commit8f7b134e5a5e8ad43e7dd2f23f7120655bf5aa2d (patch)
tree0329a4a9b1d7e336beda8f9ad88067bb9b13e505 /protected/extensions/yii-mail/vendors/swiftMailer/preferences.php
parente9e241011e2c390b0e2d88e330ed5fa770369a8d (diff)
Neue Erweiterung zum eMail-Versand hinzugefügt
Diffstat (limited to 'protected/extensions/yii-mail/vendors/swiftMailer/preferences.php')
-rw-r--r--protected/extensions/yii-mail/vendors/swiftMailer/preferences.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/protected/extensions/yii-mail/vendors/swiftMailer/preferences.php b/protected/extensions/yii-mail/vendors/swiftMailer/preferences.php
new file mode 100644
index 0000000..0b9e4b1
--- /dev/null
+++ b/protected/extensions/yii-mail/vendors/swiftMailer/preferences.php
@@ -0,0 +1,20 @@
+<?php
+
+/****************************************************************************/
+/* */
+/* YOU MAY WISH TO MODIFY OR REMOVE THE FOLLOWING LINES WHICH SET DEFAULTS */
+/* */
+/****************************************************************************/
+
+// Sets the default charset so that setCharset() is not needed elsewhere
+Swift_Preferences::getInstance()->setCharset('utf-8');
+
+// Without these lines the default caching mechanism is "array" but this uses
+// a lot of memory.
+// If possible, use a disk cache to enable attaching large attachments etc
+if (function_exists('sys_get_temp_dir') && is_writable(sys_get_temp_dir()))
+{
+ Swift_Preferences::getInstance()
+ -> setTempDir(sys_get_temp_dir())
+ -> setCacheType('disk');
+}