Commit 752b2694 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1515 - Special characters (Umlaut) in "welcome_mail_message" string get cut off

parent d363fee4
......@@ -263,15 +263,15 @@ class page_action extends tform_actions {
$global_config = $app->getconf->get_global_config('mail');
if(!empty($global_config['admin_mail']))$welcomeFromEmail = $global_config['admin_mail'];
if(!empty($global_config['admin_name']))$welcomeFromName = $global_config['admin_name'];
$mailHeaders = "MIME-Version: 1.0" . "\n";
$mailHeaders .= "Content-type: text/plain; charset=utf-8" . "\n";
$mailHeaders .= "Content-Transfer-Encoding: 8bit" . "\n";
$mailHeaders .= "From: $welcomeFromName <$welcomeFromEmail>" . "\n";
$mailHeaders .= "Reply-To: <$welcomeFromEmail>" . "\n";
$mailTarget = $this->dataRecord["email"];
$mailSubject = "=?utf-8?Q?" . imap_8bit($app->tform->lng("welcome_mail_subject")) . "?=";
$mailBody = $app->tform->lng("welcome_mail_message");
mail($mailTarget, $mailSubject, $mailBody, $mailHeaders);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment