Hi, I would like to send e-mails from the scrip preparation code. I use
require RT::Action::SendEmail; use strict; use vars qw/@ISA/; @ISA = qw(RT::Action::SendEmail); and would like to set $self->SetTemplate(25); but against my expectation $self is not the scrip object but Action::UserDefined which does not allow setting the template. At the end I would send the mail by @{ $self->{'To'} } = $followerEmail; $self->SUPER::Prepare(); $self->SUPER::Commit(); If I do not set the template, then the ::Prepare call does not work, lacking the TemplateObj. How could I do this properly? - Gergely