Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
6d49fc6a
Commit
6d49fc6a
authored
Sep 07, 2011
by
tbrehm
Browse files
Fixes in welcome email.
parent
c719dc0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/conf/mail/welcome_email_en.txt
View file @
6d49fc6a
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
server/plugins-available/mail_plugin.inc.php
View file @
6d49fc6a
...
...
@@ -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:
$welcome
FromName
<
$welcomeFromEmail
>
"
.
"
\n
"
;
$mailHeaders
.
=
"Reply-To:
<
$welcome
FromEmail
>
"
.
"
\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
)
.
"?="
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment