Skip to content
Snippets Groups Projects
Commit 6d49fc6a authored by tbrehm's avatar tbrehm
Browse files

Fixes in welcome email.

parent c719dc0b
No related branches found
No related tags found
2 merge requests!46Master,!21Master
From: ISPConfig <postmaster@localhost.localdomain>
Subject: Welcome to your new email account.
Welcome to your new email account. Your webmaster.
\ No newline at end of file
......@@ -169,8 +169,10 @@ class mail_plugin {
$tmp = file($conf['rootpath'].'/conf/mail/welcome_email_en.txt');
}
$welcome_mail_subject = trim(substr($tmp[0],8));
$welcome_mail_from = trim(substr($tmp[0],5));
$welcome_mail_subject = trim(substr($tmp[1],8));
unset($tmp[0]);
unset($tmp[1]);
$welcome_mail_message = trim(implode($tmp));
unset($tmp);
......@@ -180,8 +182,8 @@ class mail_plugin {
$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";
$mailHeaders .= "From: $welcome_mail_from" . "\n";
$mailHeaders .= "Reply-To: $welcome_mail_from" . "\n";
$mailTarget = $data["new"]["email"];
$mailSubject = "=?utf-8?Q?" . imap_8bit($welcome_mail_subject) . "?=";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment