[rt-users] RT: User-defined action to send mail template to a specific address?

Todd Chapman todd at chaka.net
Wed Mar 23 12:07:29 EST 2005


On Wed, Mar 23, 2005 at 10:55:07AM -0600, Rick Russell wrote:
> 
> This seems like kind of a dumb question, but I've been thinking about it 
> for a long time and I'm coming up empty. Any help is appreciated.
> 
> There are various times when I want to notify a specific e-mail address 
> when something happens. However, I don't want them to be an CC or AdminCC. 
> I want to send a single e-mail with a scrip.
> 
> I'd like to write a user defined action that simply sends e-mail to a 
> given address, using the scrip-specified template. Something like:
> 
>    my $To = 'rickr at rice.edu'
> 
>    send_template_mail($To);
> 
> That's all. I've looked at RT::Action::Notify and RT::Action::SendMail, 
> but I am far from a state of PERL Zen Mastery, and I can't make heads or 
> tails of them. Can anybody help me with some sample code?
> 

Create a Scrip with action 'Notify Other Recipients'. THen
create a template such as:

---start template---
To: rickr at rice.edu

This is your message
--- end template ---



More information about the rt-users mailing list