[rt-users] New Ticket Notifications - send only based on requester's email address
Kevin Falcone
falcone at bestpractical.com
Fri Mar 14 11:04:42 EDT 2014
On Fri, Mar 14, 2014 at 03:46:06AM -0700, jgarrett wrote:
> I need to Send a notification email to a group of RT users, when a ticket is
> created/raised into a specific RT queue, where the requesters email address
> is NOT @aspecificdomian.com.
You can use
http://bestpractical.com/docs/rt/latest/rt-email-group-admin.html
to create an action that specifically emails a group you control with
the custom template you provide and then you just need a user defined
condition that checks that
$self->TransactionObj->Type eq 'Create'
and that
$self->TicketObj->RequestorAddresses
http://bestpractical.com/docs/rt/latest/RT/Ticket.html#RequestorAddresses
returns users who don't match your problem domain.
You could also just simplify your life and make a new queue and have
your mail admins route mail from anything not in that domain into the
other queue. Then the RT part becomes just On Create Notify Group
with no code.
-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140314/205da2ee/attachment.sig>
More information about the rt-users
mailing list