<div dir="ltr">I suspect that you need to escape the "special" characters in your subject value. I've used this with success:<div><br></div><div><div><a href="mailto:<a href="mailto:xxx@yyy.zzz">xxx@yyy.zzz</a>?subject={</div><div> require URI::Escape;</div><div> URI::Escape::uri_escape(sprintf(</div><div> 'Re: [XXX #%s] %s',</div><div> $Ticket->id,</div><div> $Ticket->Subject</div><div> ))</div><div>}">Update this ticket via email</a></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 February 2015 at 05:31, Cena, Stephen (ext. 300) <span dir="ltr"><<a href="mailto:SJC@qvii.com" target="_blank">SJC@qvii.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div><font face="Arial"><span>I'm trying to use HTML templates to make responding to tickets easier for my users. I'm having a problem creating a link to generate an email. The code I have is:</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span><tr><td>You have the ability to <a href="<a href="mailto:%7B$Ticket-%3EQueueObj-%3ECorrespondAddress%7D?subject=[%7B$Ticket-%3EQueueObj-%3ESubjectTag" target="_blank">mailto:{$Ticket->QueueObj->CorrespondAddress}?subject=[{$Ticket->QueueObj->SubjectTag</a>
|| $rtname} #{$Ticket->id}]">update this ticket via email</a>.</td></tr></span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>This always will generate a new ticket. If I add the in front of the #{$Ticket->id}, that at least puts the space in but same results. I've tried adding an "RE: " in front as well, and
it still causes a new ticket.</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>If I do a Reply from the Autoreply email I get when the ticket is created, strip off the subject & just leave the queue tag the ticket gets updated correctly.</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>What am I doing wrong?</span></font></div>
<div> </div>
<div align="left"><font face="Arial">Stephen J. Cena<br>
Supervisor/Systems Administrator - MIS/IT Dept<br>
Quality Vision International<br>
850 Hudson Ave<br>
Rochester,NY 14620<br>
Phone: 585-544-0450 x300<br>
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br>
Please report email problems to: <a href="mailto:postmaster@qvii.com" target="_blank">postmaster@qvii.com</a></font></div>
<div> </div>
<div align="left"><font face="Arial">QVII MIS/IT Dept - We do what we must because we can.<br>
"Thank you for helping us help you help us all."<br>
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *</font></div>
<div> </div>
</div>
</blockquote></div><br></div>