Re: [rt-users] Emailing with NotifyOwnerOrAdminCc action?

2016-12-20 Thread Alex Hall
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

--action RT::Action::Notify \
--action-arg RT::Action::NotifyOwnerOrAdminCc

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.

On Tue, Dec 20, 2016 at 7:48 AM, Alex Hall  wrote:

> 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  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
>> ah...@autodist.com
>>
>
>
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ah...@autodist.com
>



-- 
Alex Hall
Automatic Distributors, IT department
ah...@autodist.com


Re: [rt-users] Emailing with NotifyOwnerOrAdminCc action?

2016-12-20 Thread Alex Hall
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  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
> ah...@autodist.com
>



-- 
Alex Hall
Automatic Distributors, IT department
ah...@autodist.com