diff --git a/lib/Froxlor/Api/Commands/Customers.php b/lib/Froxlor/Api/Commands/Customers.php index 48ad2428..428984f7 100644 --- a/lib/Froxlor/Api/Commands/Customers.php +++ b/lib/Froxlor/Api/Commands/Customers.php @@ -839,7 +839,7 @@ class Customers extends ApiCommand implements ResourceEntity try { $this->mailer()->Subject = $mail_subject; $this->mailer()->AltBody = $mail_body; - $this->mailer()->msgHTML(str_replace("\n", "
", $mail_body)); + $this->mailer()->Body = str_replace("\n", "
", $mail_body); $this->mailer()->addAddress($email, User::getCorrectUserSalutation([ 'firstname' => $firstname, 'name' => $name, diff --git a/lib/Froxlor/Api/Commands/EmailAccounts.php b/lib/Froxlor/Api/Commands/EmailAccounts.php index 707a816d..d28938f3 100644 --- a/lib/Froxlor/Api/Commands/EmailAccounts.php +++ b/lib/Froxlor/Api/Commands/EmailAccounts.php @@ -265,7 +265,7 @@ class EmailAccounts extends ApiCommand implements ResourceEntity $this->mailer()->addReplyTo($admin['email'], User::getCorrectUserSalutation($admin)); $this->mailer()->Subject = $mail_subject; $this->mailer()->AltBody = $mail_body; - $this->mailer()->msgHTML(str_replace("\n", "
", $mail_body)); + $this->mailer()->Body = str_replace("\n", "
", $mail_body); $this->mailer()->addAddress($email_full); $this->mailer()->send(); } catch (\PHPMailer\PHPMailer\Exception $e) { diff --git a/lib/Froxlor/Api/Commands/Ftps.php b/lib/Froxlor/Api/Commands/Ftps.php index a3b561d7..4a964b57 100644 --- a/lib/Froxlor/Api/Commands/Ftps.php +++ b/lib/Froxlor/Api/Commands/Ftps.php @@ -288,7 +288,7 @@ class Ftps extends ApiCommand implements ResourceEntity try { $this->mailer()->Subject = $mail_subject; $this->mailer()->AltBody = $mail_body; - $this->mailer()->msgHTML(str_replace("\n", "
", $mail_body)); + $this->mailer()->Body = str_replace("\n", "
", $mail_body); $this->mailer()->addAddress($customer['email'], User::getCorrectUserSalutation($customer)); $this->mailer()->send(); } catch (\PHPMailer\PHPMailer\Exception $e) { diff --git a/lib/Froxlor/Api/Commands/Mysqls.php b/lib/Froxlor/Api/Commands/Mysqls.php index 377afdda..b405375e 100644 --- a/lib/Froxlor/Api/Commands/Mysqls.php +++ b/lib/Froxlor/Api/Commands/Mysqls.php @@ -184,7 +184,7 @@ class Mysqls extends ApiCommand implements ResourceEntity try { $this->mailer()->Subject = $mail_subject; $this->mailer()->AltBody = $mail_body; - $this->mailer()->msgHTML(str_replace("\n", "
", $mail_body)); + $this->mailer()->Body = str_replace("\n", "
", $mail_body); $this->mailer()->addAddress($userinfo['email'], User::getCorrectUserSalutation($userinfo)); $this->mailer()->send(); } catch (\PHPMailer\PHPMailer\Exception $e) {