From 5bc8cb662fc3bcda9aa641b7a5e88c0b81dd63d6 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 18 Nov 2005 15:47:00 +0000 Subject: Minor bugfixes --- program/steps/mail/sendmail.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'program/steps/mail') 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(' ', ', ', ''); -- cgit v1.2.3