diff --git a/include/class.mailer.php b/include/class.mailer.php index cb161bbcaf6c5328817765078163b48378a8efd6..31aee098010cbcff6eb185c1afb2864fbda02054 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -176,10 +176,12 @@ class Mailer { $mid_token = (isset($options['thread'])) ? $options['thread']->asMessageId($to) : ''; if (!(isset($options['text']) && $options['text'])) { - if ($cfg && $cfg->stripQuotedReply() && ($tag=$cfg->getReplySeparator()) + $tag = ''; + if ($cfg && $cfg->stripQuotedReply() && (!isset($options['reply-tag']) || $options['reply-tag'])) - $message = "<div style=\"display:none\" - data-mid=\"$mid_token\">$tag<br/><br/></div>$message"; + $tag = $cfg->getReplySeparator() . '<br/><br/>'; + $message = "<div style=\"display:none\" + data-mid=\"$mid_token\">$tag</div>$message"; $txtbody = rtrim(Format::html2text($message, 90, false)) . ($mid_token ? "\nRef-Mid: $mid_token\n" : ''); $mime->setTXTBody($txtbody); diff --git a/include/class.osticket.php b/include/class.osticket.php index b30647742f667956e1f53160e2e19b5841eae3c0..71a8c94d142878adfaa9d3966868147b24e09515 100644 --- a/include/class.osticket.php +++ b/include/class.osticket.php @@ -245,7 +245,7 @@ class osTicket { $email=$this->getConfig()->getDefaultEmail(); //will take the default email. if($email) { - $email->sendAlert($to, $subject, $message, null, array('text'=>true)); + $email->sendAlert($to, $subject, $message, null, array('text'=>true, 'reply-tag'=>false)); } else {//no luck - try the system mail. Mailer::sendmail($to, $subject, $message, sprintf('"osTicket Alerts"<%s>',$to)); }