- set correct html-linebreaks when sending e-mails

- disallow email-add form when no (email-)domain is added yet
This commit is contained in:
Michael Kaufmann (d00p)
2010-03-05 07:13:00 +00:00
parent b5465f602f
commit 491e5363a7
6 changed files with 29 additions and 16 deletions

View File

@@ -624,10 +624,9 @@ if($page == 'customers'
$_mailerror = false;
try {
$mail->SetFrom($this->settings['ticket']['noreply_email'], $this->settings['ticket']['noreply_name']);
$mail->Subject = $mail_subject;
$mail->AltBody = $mail_body;
$mail->MsgHTML($mail_body);
$mail->MsgHTML(str_replace("\n", "<br />", $mail_body));
$mail->AddAddress($email, getCorrectUserSalutation(array('firstname' => $firstname, 'name' => $name, 'company' => $company)));
$mail->Send();
} catch(phpmailerException $e) {