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. -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training