[rt-users] Send email reminder fails with undefined value

fleon fleon at seguroscatatumbo.com
Thu Oct 16 08:40:19 EDT 2014


I made the code work! I got suspicious when i saw that emails from cron came
from user root, id =12. 12??? Isn't the superuser supposed to be id 1?

So i hardcoded 12 into the line:
return unless $Transaction->Creator == 12;

And now it hides those transactions.

I tried substituting the cron job with SendEmail:

51 7 * * * root /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::SendEmail --action-arg
Owner,Alwa
ysNotifyActor --template 'Recordatorio' --transaction first

But on syslog i get a notice that it doesn't have recipients therefore mail
won't get sent.





--
View this message in context: http://requesttracker.8502.n7.nabble.com/Send-email-reminder-fails-with-undefined-value-tp58805p58857.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.



More information about the rt-users mailing list