Kurt,<br><br>Here's a suggestion:<br><br>1) Create a CustomField that will hold the "To:" Address you create from your scrip.<br>2)
 Make the privileges for that CF so no one can see it or modify it (RT 
will be able to in the scrip). This way the CF does clutter up ticket 
display.<br>
3) Build a template to pull the value of that customField into the "To:" address.<br>4) Create a notification scrip to use that template, action "Notify Others" based on your required condition.<br><br>

That should work.<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Fri, Dec 10, 2010 at 11:07 AM, Kurt Engle <span dir="ltr"><<a href="mailto:engle@4j.lane.edu">engle@4j.lane.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);">Actually found a nice example of creating a template to send out an e-mail. RTFM....<br><br>However, I am having a bit of a problem constructing the To: field. Basically, I have a varialble '$toAddress' that is set to an e-mail address by some prior code. <br>
<br>Here is my template code to construct the To: field:<br>To: { $toAddress }<br>Subject: Ticket #{ $Ticket->Id()} {$Ticket->Subject()}<br>A new ticket has been created for you in the HelpDesk Queue.<br><br>{ $RT::WebURL } Ticket/Display.html?id={ $Ticket->Id() }<br>
<br>However, I keep getting 'recipient not found'.<br><span><br><span name="x"></span>Kurt Engle<br><span name="x"></span><br></span><br><hr><div class="im"><b>From: </b>"Kevin Falcone" <<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>><br>
<b>To: </b><a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a><br></div><b>Sent: </b>Friday, December 10, 2010 10:03:04 AM<div><div></div><div class="h5"><br><b>Subject: </b>Re: [rt-users] notification<br>
<br>On Fri, Dec 10, 2010 at 09:55:07AM -0800, Kurt Engle wrote:<br>>    That is correct. But how do I make use of the RT::Action::SendEmail module to send the<br>>    notification incorporating my To: field. Or is there a better way to send out a custom<br>
>    notification?<br><br>You use one of the standard Notify actions and a custom template.  You<br>don't write any code in the action and you don't call the action<br>directly.<br><br>-kevin<br><br>>    From: "Kevin Falcone" <<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>><br>
>    To: <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a><br>>    Sent: Friday, December 10, 2010 8:59:25 AM<br>>    Subject: Re: [rt-users] notification<br>> <br>
>    On Thu, Dec 09, 2010 at 11:42:03AM -0800, Kurt Engle wrote:<br>>    >    I am looking for a way to send an email from RT to a specified e-mail address that is not<br>>    an<br>>    >    account in RT or associated with the ticket as a requestor, watcher, CC:, BCC:...etc....<br>
>    ><br>>    >    I have the logic down to specify the e-mail address and have some nasty perl code to<br>>    actually<br>>    >    send the e-mail. But, it seems that RT has some internal module(s) that handle what the<br>
>    nasty<br>>    >    perl code is doing.<br>>    ><br>>    >    I can see the RT::Action:SendEmail module, but how do I incorporate that into a script<br>>    that<br>>    >    allows me to do what I am looking to do?<br>
> <br>>    Sounds like you actually just want to use a normal Notify action, but<br>>    have the template contain your ugly logic that sets up the To: line<br>>    based on your perl code<br>> <br>>    -kevin<br>
</div></div></div></div></blockquote></div><br>