fix plaintext-mail content, thx to AlexL
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -839,7 +839,7 @@ class Customers extends ApiCommand implements ResourceEntity
|
|||||||
try {
|
try {
|
||||||
$this->mailer()->Subject = $mail_subject;
|
$this->mailer()->Subject = $mail_subject;
|
||||||
$this->mailer()->AltBody = $mail_body;
|
$this->mailer()->AltBody = $mail_body;
|
||||||
$this->mailer()->msgHTML(str_replace("\n", "<br />", $mail_body));
|
$this->mailer()->Body = str_replace("\n", "<br />", $mail_body);
|
||||||
$this->mailer()->addAddress($email, User::getCorrectUserSalutation([
|
$this->mailer()->addAddress($email, User::getCorrectUserSalutation([
|
||||||
'firstname' => $firstname,
|
'firstname' => $firstname,
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ class EmailAccounts extends ApiCommand implements ResourceEntity
|
|||||||
$this->mailer()->addReplyTo($admin['email'], User::getCorrectUserSalutation($admin));
|
$this->mailer()->addReplyTo($admin['email'], User::getCorrectUserSalutation($admin));
|
||||||
$this->mailer()->Subject = $mail_subject;
|
$this->mailer()->Subject = $mail_subject;
|
||||||
$this->mailer()->AltBody = $mail_body;
|
$this->mailer()->AltBody = $mail_body;
|
||||||
$this->mailer()->msgHTML(str_replace("\n", "<br />", $mail_body));
|
$this->mailer()->Body = str_replace("\n", "<br />", $mail_body);
|
||||||
$this->mailer()->addAddress($email_full);
|
$this->mailer()->addAddress($email_full);
|
||||||
$this->mailer()->send();
|
$this->mailer()->send();
|
||||||
} catch (\PHPMailer\PHPMailer\Exception $e) {
|
} catch (\PHPMailer\PHPMailer\Exception $e) {
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ class Ftps extends ApiCommand implements ResourceEntity
|
|||||||
try {
|
try {
|
||||||
$this->mailer()->Subject = $mail_subject;
|
$this->mailer()->Subject = $mail_subject;
|
||||||
$this->mailer()->AltBody = $mail_body;
|
$this->mailer()->AltBody = $mail_body;
|
||||||
$this->mailer()->msgHTML(str_replace("\n", "<br />", $mail_body));
|
$this->mailer()->Body = str_replace("\n", "<br />", $mail_body);
|
||||||
$this->mailer()->addAddress($customer['email'], User::getCorrectUserSalutation($customer));
|
$this->mailer()->addAddress($customer['email'], User::getCorrectUserSalutation($customer));
|
||||||
$this->mailer()->send();
|
$this->mailer()->send();
|
||||||
} catch (\PHPMailer\PHPMailer\Exception $e) {
|
} catch (\PHPMailer\PHPMailer\Exception $e) {
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ class Mysqls extends ApiCommand implements ResourceEntity
|
|||||||
try {
|
try {
|
||||||
$this->mailer()->Subject = $mail_subject;
|
$this->mailer()->Subject = $mail_subject;
|
||||||
$this->mailer()->AltBody = $mail_body;
|
$this->mailer()->AltBody = $mail_body;
|
||||||
$this->mailer()->msgHTML(str_replace("\n", "<br />", $mail_body));
|
$this->mailer()->Body = str_replace("\n", "<br />", $mail_body);
|
||||||
$this->mailer()->addAddress($userinfo['email'], User::getCorrectUserSalutation($userinfo));
|
$this->mailer()->addAddress($userinfo['email'], User::getCorrectUserSalutation($userinfo));
|
||||||
$this->mailer()->send();
|
$this->mailer()->send();
|
||||||
} catch (\PHPMailer\PHPMailer\Exception $e) {
|
} catch (\PHPMailer\PHPMailer\Exception $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user