MultipleOutgoingEmailAddresses: Difference between revisions
Jump to navigation
Jump to search
m (2 revisions imported) |
mNo edit summary |
||
Line 7: | Line 7: | ||
For example you have [mailto:support@default.com support@default.com] and [mailto:support@second.com support@second.com] and wish track requests in one queue with no effect for user. You set mail relaying to [mailto:support@default.com support@default.com] from [mailto:support@second.com support@second.com]. Queue is working but RT uses [mailto:support@default.com support@default.com] as outgoing address for all request. Users are confused usual. He wrote to one address and gets answer from another. With this example you can track down | For example you have [mailto:support@default.com support@default.com] and [mailto:support@second.com support@second.com] and wish track requests in one queue with no effect for user. You set mail relaying to [mailto:support@default.com support@default.com] from [mailto:support@second.com support@second.com]. Queue is working but RT uses [mailto:support@default.com support@default.com] as outgoing address for all request. Users are confused usual. He wrote to one address and gets answer from another. With this example you can track down | ||
< | <pre> | ||
{use vars qw($replyto); # define global var for this template | |||
# original 'To:' | # original 'To:' | ||
my $orig_to = $Ticket->Transactions->First->Message->First->GetHeader('To'); | my $orig_to = $Ticket->Transactions->First->Message->First->GetHeader('To'); | ||
Line 15: | Line 16: | ||
Reply-To: {$replyto} | Reply-To: {$replyto} | ||
</ | </pre> | ||
'''NOTE:''' Don't add <u>any</u> character between '}' and 'From' | '''NOTE:''' Don't add <u>any</u> character between '}' and 'From' | ||
See also [[UseActorAsSender]] | See also [[UseActorAsSender]] |
Latest revision as of 13:30, 21 August 2016
Description
This is Template part that allow use multiple outgoing email addresses for same queue
Where do you need it?
For example you have support@default.com and support@second.com and wish track requests in one queue with no effect for user. You set mail relaying to support@default.com from support@second.com. Queue is working but RT uses support@default.com as outgoing address for all request. Users are confused usual. He wrote to one address and gets answer from another. With this example you can track down
{use vars qw($replyto); # define global var for this template # original 'To:' my $orig_to = $Ticket->Transactions->First->Message->First->GetHeader('To'); $replyto = $orig_to || 'support@default.com'; # default if 'To:' was unspecified. return '';}From: {$replyto} Sender: {$replyto} Reply-To: {$replyto}
NOTE: Don't add any character between '}' and 'From'
See also UseActorAsSender