[rt-users] Send email reminder fails with undefined value
fleon
fleon at seguroscatatumbo.com
Tue Oct 14 11:50:26 EDT 2014
Another change, with another module:
i changed rt-crontool to:
/opt/rt4/bin/rt-crontool --search RT::Search::FromSQL --search-arg "Queue =
'apoyo' AND Owner != 'Nobody' AND ( Status = 'open' OR Status = 'new'
) AND Created < '1 day ago'" --action RT::Action::Notify --action-arg
'Owner' --template 'Recordatorio'
And now i get this error:
Oct 14 11:01:03 mar-zabbix RT: [8035] Can't call method "CreatorObj" on an
undefined value at /opt/rt4/bin/../lib/RT/Action/SendEmail.pm line 957.
I went to the code and found this:
unless ( $friendly_name ) {
$friendly_name = $self->TransactionObj->CreatorObj->FriendlyName;
So i went and added --transaction last to cron and ran again and i don't get
an error, but no email is sent, with this message in the logs:
[9114] [Tue Oct 14 15:44:03 2014] [info]:
+<rt-4.2.8-9114-1413301443-1484.5-0-0 at mar-zabbix.seguroscatatumbo.com>
#5/9797 -
+Scrip #rule (/opt/rt4/bin/../lib/RT/Action/SendEmail.pm:284)
[9114] [Tue Oct 14 15:44:03 2014] [info]:
+<rt-4.2.8-9114-1413301443-1484.5-0-0 at mar-zabbix.seguroscatatumbo.com> No
+recipients found. Not sending.
(/opt/rt4/bin/../lib/RT/Interface/Email.pm:378)
I even added a To:{$Ticket->Owner} in the template and i still get the same
message. What i am missing? The documentation to the modules doesn't give
examples. Not even if i put my email in the --action-arg will work.
--
View this message in context: http://requesttracker.8502.n7.nabble.com/Send-email-reminder-fails-with-undefined-value-tp58805p58809.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users
mailing list