[rt-users] How to send a one-shot email on ticket creation
Stephen Turner
sturner at MIT.EDU
Wed Dec 20 14:17:46 EST 2006
> -----Original Message-----
>
> I had to do this. I managed to do this (using RT 3.6.1) by adding an
> action called "Send Email". This is a database edit. I used
> an install
> file like this:
>
> # Used to install a scrip action.
> #
> # To install,
> # execute
> # /path/to/rt3/sbin/rt-setup-database --action insert \
> # --datafile /path/to/SendEmailAction.install
> #
> @ScripActions = (
> { Name => 'Send Email',
> Description => 'Sends a message to those specified in
> the template',
> ExecModule => 'SendEmail',
> Argument => '' },
> );
>
> Then create a template that looks something like this:
>
> To: user1 at example.org, user2 at example.org
> Bcc: user3 at example.org
> Subject: {$Ticket->Subject}
>
> A ticket has been created in (or moved to) this queue.
>
> {$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
>
> -------------
>
> {$Transaction->Content()}
>
> Finally, create a scrip for "on create", action "send email", and
> specify your template. The template specifies who receives the email.
>
> Jason
>
I don't think you need to create a database entry for the action - we've
done similar by a scrip like this:
On Create Notify Other Recipients using template whatever
As in Jason's example, the template has the email addresses hard-coded at
the top.
Steve
----------------------------------------
Stephen Turner
Senior Programmer/Analyst - Client Support Services
MIT Information Services and Technology (IS&T)
More information about the rt-users
mailing list