[rt-users] Emailing with NotifyOwnerOrAdminCc action?
Alex Hall
ahall at autodist.com
Tue Dec 20 07:48:30 EST 2016
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?
After my search and search-arg items, I'm now trying this:
--action RT::Action::SendEmail \
--action-arg RT::Action::NotifyOwnerOrAdminCc
I also tried
--action-arg 'owner'
In both cases, I got the error:
Can't call method "MIMEObj" on an undefined value at
/opt/rt4/bin/../lib/RT/Action/SendEmail.pm line 139
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!
On Mon, Dec 19, 2016 at 4:51 PM, Alex Hall <ahall at autodist.com> wrote:
> Hi all,
> 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:
>
> --action RT::Action::NotifyOwnerOrAdminCc \
> --template "untouched ticket"
>
> 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:
>
> can't call method "Message" on an undefined value at
> /opt/rt4/bin/../lib/RT/Action/SendEmail.pm on line 1118
>
> 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!
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ahall at autodist.com
>
--
Alex Hall
Automatic Distributors, IT department
ahall at autodist.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20161220/1613a54f/attachment.htm>
More information about the rt-users
mailing list