<div dir="ltr"><div><div><div>In my previous message, the "new" error was because I didn't include --template. Now that I have, I'm back to the original error, in my first message. I've also tried using<br><br></div>--action RT::Action::Notify \<br></div>--action-arg RT::Action::NotifyOwnerOrAdminCc<br><br></div>but I still get the same error (can't call method "message" on an undefined value). I've looked this up online, but only found a few threads, one of which said to use RT::Action::Notify. I don't know what else to try, or why this refuses to work.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 20, 2016 at 7:48 AM, Alex Hall <span dir="ltr"><<a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>I'm still working on this, and it still hates me. :) I thought of something this morning and it gave me a different result; I wanted to see if I was on the right track, at least. Any thoughts?<br><br></div>After my search and search-arg items, I'm now trying this:<br><br></div>--action RT::Action::SendEmail \<br></div>--action-arg RT::Action::<wbr>NotifyOwnerOrAdminCc<br><br></div>I also tried <br><br></div>--action-arg 'owner'<br><br></div>In both cases, I got the error:<br><br></div>Can't call method "MIMEObj" on an undefined value at /opt/rt4/bin/../lib/RT/Action/<wbr>SendEmail.pm line 139<br><br></div>This is at least a slightly different error. As I said yesterday, I can't give a hard-coded email address, as this job will have to email whoever is the owner of the ticket being worked on. I have to be missing something obvious about this process!<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 19, 2016 at 4:51 PM, Alex Hall <span dir="ltr"><<a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi all,<br></div>Now that I'm getting the tickets I want, I'm trying to email the owners of those tickets. After my search and search-arg parameters for rt-crontool, I'm doing this:<br><br></div>--action RT::Action::NotifyOwnerOrAdmin<wbr>Cc \<br></div>--template "untouched ticket"<br><br></div>I'm missing --action-arg, but I don't know what to put for that since NotifyOwnerOrAdminCc will, I presume, take care of it. However, I'm getting an error:<br><br></div>can't call method "Message" on an undefined value at /opt/rt4/bin/../lib/RT/Action/<wbr>SendEmail.pm on line 1118<br><br></div>I'm assuming this is what I mentioned--my missing action-arg--but I don't know what to put in there. Right now, the search is limited to just my own tickets, but eventually it'll run with no owner restriction so it can notify all users. Thus, the email address to use is whatever the owner's address is, and I can't hard-code it. What's the trick to getting this to work correctly? Thanks!<span class="m_3594589750911194141HOEnZb"><font color="#888888"><br clear="all"><div><div><div><div><div><div><div><br>-- <br><div class="m_3594589750911194141m_-7612838002351193640gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div></div></div></div></div></div></div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="m_3594589750911194141gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div>