summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-11-18 15:47:00 +0000
committerthomascube <thomas@roundcube.net>2005-11-18 15:47:00 +0000
commit5bc8cb662fc3bcda9aa641b7a5e88c0b81dd63d6 (patch)
treed0916876345f1f52e545aa0f07f3a01bff4a9616 /program/steps/mail/sendmail.inc
parentfbf77b4493f1b77c99751d8a86365c712ae3fb1b (diff)
Minor bugfixes
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 4531aa311..11fb559dd 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -73,6 +73,11 @@ if (empty($_POST['_to']) && empty($_POST['_subject']) && $_POST['_message'])
}
+// set default charset
+if (empty($CHARSET))
+ $CHARSET = 'ISO-8859-1';
+
+
$mailto_regexp = array('/,\s*[\r\n]+/', '/[\r\n]+/', '/,\s*$/m');
$mailto_replace = array(' ', ', ', '');