<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Ken & others,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>After going home and troubleshooting this more and looking at the archive postings I noticed that some people got it working by changing the Template to the following:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>To: {my $old_owner = RT::User->new($RT::System); </DIV><DIV>$old_owner->Load($Transaction->OldValue); </DIV><DIV>$old_owner->EmailAddress()} </DIV><DIV>Subject: Ticket #{$Ticket->Id()} taken by {$Ticket->OwnerObj->Name()} </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>A ticket you owned: </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"{$Ticket->Subject()}" </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>has been taken by {$Ticket->OwnerObj->Name()} </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>{$RT::WebURL}Ticket/Display.html?id={$Ticket->Id()}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Basically changing the $RT::System part. It worked for others though its not working for me. I do see that my Everyone Group does have ShowOutgoingMail along with Every group that I have created that has the ShowOutgoingMail. I noticed the following in the /var/log/messages</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Mar 8 23:30:31 admin RT: Successful login for jbartels from 24.26.232.60 (/usr/share/request-tracker3.4/html/autohandler:197) </DIV><DIV>Mar 8 23:30:48 admin RT: <<A href="mailto:rt-3.4.1-2188-21627-2.19.1568452421506@something.com">rt-3.4.1-2188-21627-2.19.1568452421506@something.com</A>> #2188/21627 - Scrip 2 (/usr/share/request-tracker3.4/lib/RT/Action/SendEmail.pm:235) </DIV><DIV>Mar 8 23:30:48 admin RT: <<A href="mailto:rt-3.4.1-2188-21627-2.19.1568452421506@something.com">rt-3.4.1-2188-21627-2.19.1568452421506@something.com</A>.> No recipients found. Not sending. (/usr/share/request-tracker3.4/lib/RT/Action/SendEmail.pm:247) </DIV><DIV>Mar 8 23:30:48 admin RT: <<A href="mailto:rt-3.4.1-2188-21627-15.13.6658577819274@something.com">rt-3.4.1-2188-21627-15.13.6658577819274@something.com</A>> #2188/21627 - Scrip 15 Ticket Stolen (/usr/share/request-tracker3.4/lib/RT/Action/SendEmail.pm:235) </DIV><DIV>Mar 8 23:30:48 admin RT: <<A href="mailto:rt-3.4.1-2188-21627-15.13.6658577819274@something.com">rt-3.4.1-2188-21627-15.13.6658577819274@something.com</A>> No recipients found. Not sending. (/usr/share/request-tracker3.4/lib/RT/Action/SendEmail.pm:247)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Okay so when I test it by pressing the Steal ticket it only works if the root user has the ticket (just did it for testing) but if I use a real user say jbartels and have jtest user steal it I do not receive an e-mail and it shows that error message in the log file.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I want the e-mail sent to the user that use to have the ticket before it was stolen. So it would go to jbartels if the jtest user stole it. Not sure where I went wrong. I also searched the archives and it said to try using the </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Set($NotifyActor, 0);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Which doesn't help anything.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any thoughts?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-jason</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Mar 8, 2006, at 6:49 PM, Ken Crocker wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> JAson, to whom did you want the e_mail to go to and did you give that role (like requestor) or group the "SeeOutgoingMail" priviledge? If not, then you can have a hundred scrips that will go nowhere if no one has the priviledge of seeing outgoing mail.<BR> <BR> Kenn<BR> <BR> Jason B. wrote:<BR> <BLOCKQUOTE cite="mid52A6AA62-F06C-4F34-8E3B-F2BB1FF29AAB@sitepier.com" type="cite">Thanks to everyone who replied to my last e-mail about custom scrips Inquiry, it really helped. I am working with the RT Essentials trying to get a butter understand of Templates and Scrips so I followed the "Your ticket was stolen Example" but when someone steals the ticket there is not an e-mail sent. Do you see anything I did wrong? <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>Here is what I did.</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>Under root I did the following:</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV><SPAN class="Apple-style-span">Configurations -> Global -> <FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">templates</SPAN></FONT></SPAN></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"> </SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Created the following template:</SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"> </SPAN></FONT></DIV> <DIV>To: { my $old_owner = RT::User->new( $self->CurrentUser );</DIV> <DIV> $old_owner->Load( $Transaction->OldValue );</DIV> <DIV> $old_owner->EmailAddress() }</DIV> <DIV>Subject: Ticket #{ $Ticket->Id() } taken by { $Ticket->OwnerObj->Name() }</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>A ticket you owned:</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV> { $Ticket->Subject() }</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>has been taken by {$Ticket->OwnerObj->Name()}.</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>{ $RT::WebURL }Ticket/Display.html?id={ $Ticket->Id }</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>Saved the template.</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>Then I went to Global -> Scrips -> New Scrips</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>Des: Ticket Stole<FONT class="Apple-style-span" face="Verdana" size="3">n<SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Condition: User Defiened</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Action: Notify Other Requestors ( I also tried Notified Owner)</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Template: Global Template Ticket Steal</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Stage: TransactionCreate</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Custom condition:</SPAN></FONT><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"> </SPAN></FONT></DIV> <DIV>my $trans = $self->TransactionObj; return 0 unless $trans->Field eq 'Owner'; return 1 if $trans->OldValue != RT::Nobody()->id(); return 0;<FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>I am running the RT 3.4.1-2 version from Debian repo. Also the bestpractical.com website is going slow.</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>Thanks for the help</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>-jb</DIV> <DIV><FONT class="Apple-style-span" face="Verdana" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></SPAN></FONT></DIV> <PRE wrap=""><HR size="4" width="90%">
_______________________________________________
<A class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</A>
Community help: <A class="moz-txt-link-freetext" href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</A>
Commercial support: <A class="moz-txt-link-abbreviated" href="mailto:sales@bestpractical.com">sales@bestpractical.com</A>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at <A class="moz-txt-link-freetext" href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</A>
We're hiring! Come hack Perl for Best Practical: <A class="moz-txt-link-freetext" href="http://bestpractical.com/about/jobs.html">http://bestpractical.com/about/jobs.html</A></PRE> </BLOCKQUOTE> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>