forgot the mailobject :P
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -251,11 +251,11 @@ class Ftps extends ApiCommand implements ResourceEntity
|
|||||||
|
|
||||||
$_mailerror = false;
|
$_mailerror = false;
|
||||||
try {
|
try {
|
||||||
$mail->Subject = $mail_subject;
|
$this->mail->Subject = $mail_subject;
|
||||||
$mail->AltBody = $mail_body;
|
$this->mail->AltBody = $mail_body;
|
||||||
$mail->MsgHTML(str_replace("\n", "<br />", $mail_body));
|
$this->mail->MsgHTML(str_replace("\n", "<br />", $mail_body));
|
||||||
$mail->AddAddress($customer['email'], getCorrectUserSalutation($customer));
|
$this->mail->AddAddress($customer['email'], getCorrectUserSalutation($customer));
|
||||||
$mail->Send();
|
$this->mail->Send();
|
||||||
} catch (phpmailerException $e) {
|
} catch (phpmailerException $e) {
|
||||||
$mailerr_msg = $e->errorMessage();
|
$mailerr_msg = $e->errorMessage();
|
||||||
$_mailerror = true;
|
$_mailerror = true;
|
||||||
@@ -269,7 +269,7 @@ class Ftps extends ApiCommand implements ResourceEntity
|
|||||||
standard_error('errorsendingmail', $customer['email']);
|
standard_error('errorsendingmail', $customer['email']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$mail->ClearAddresses();
|
$this->mail->ClearAddresses();
|
||||||
}
|
}
|
||||||
$this->logger()->logAction($this->isAdmin() ? ADM_ACTION : USR_ACTION, LOG_WARNING, "[API] added ftp-user '" . $username . "'");
|
$this->logger()->logAction($this->isAdmin() ? ADM_ACTION : USR_ACTION, LOG_WARNING, "[API] added ftp-user '" . $username . "'");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user