November 29, 2007

Change Email Header in RT

I wanted to change the email headers in RT’s autoreply emails to come from “do-not-reply” instead of the actual queue email address. This way an autoresponse to the autoresponder would bounce instead of polluting our ticket queue. After looking through the RT modules the fix is actually quite simple and only required adding the desired header fields to the top of the template. The adjusted template is below:

From: "{$Ticket->QueueObj->Description()}" <do-not-reply@inetops.com>
Reply-To: do-not-reply@inetops.com
Subject: {$Ticket->Subject}
** This is an Auto-Response **
Greetings,
This message has been automatically generated in response to the
creation of a trouble ticket, a summary of which appears below.
There is no need to reply to this message right now.
Please include the string:
[{$rtname} #{$Ticket->id}]
in the subject line of all future correspondence about this issue.
Thank you,
{$Ticket->QueueObj->Description()}
{$Ticket->QueueObj->CorrespondAddress()}
-------------------------------------------------------------------------
{$Transaction->Content()}

Comments are closed.