Fix 'Email from at' On tickets that come from emails, was cuasing dup html head body tags causing htmlPurifier to strip it in ticket viewing, so we removed html body and head tags also remove orginal reply on reply ticket emails this removed ##- Please type your reply above this line -## and anything after it. Also removed the custom CSS that was embedded for all email sent out from ITFlow

This commit is contained in:
johnnyq
2025-11-22 17:40:44 -05:00
parent ac7623d4f5
commit 185ea7d6ac
2 changed files with 39 additions and 10 deletions

View File

@@ -186,10 +186,7 @@ function sendQueueEmail(
$mail->addAddress($to_email, $to_name);
$mail->isHTML(true);
$mail->Subject = $subject;
$mail->Body = "<html><head><style>
body { font-family: Arial, sans-serif; color: #333; line-height: 1.6; }
.email-container { max-width: 600px; margin: auto; padding: 20px; border: 1px solid #ddd; border-radius: 5px; }
</style></head><body><div class='email-container'>{$html_body}</div></body></html>";
$mail->Body = $html_body;
if (!empty($ics_str)) {
$mail->addStringAttachment($ics_str, 'Scheduled_ticket.ics', 'base64', 'text/calendar');