<div dir="ltr"><div><div><div>Hello,<br><br></div>I've been attempting to instruct rt to send emails 'On Correspond' to 'Requestors' and 'Ccs',<br>only if the email address of the user generating the transaction matches a<br>
</div></div>predetermined list (@domain1 or @domain2)<br><div><div><div></div><div></div><div><div><br></div><div>Following, the code I wrote for the 'custom condition':<br></div><div><br></div><div>#--- begin code ---<br>
</div><div>if ( $self->TransactionObj->Type ne 'Create'<br> &&<br> !grep { $self->CurrentUser->EmailAddress =~ /$_$/ } <br> ('@domain1','@domain2')<br>) {<br>
return 0;<br>}<br><br>return 1;<br clear="all"><div></div><div>#-- end code --<br></div><div><br></div><div>This is the "Basics" section of the scrip:<br></div><div>Description: On Correspond Notify Requestors and Ccs<br>
</div><div>Condition: User Defined<br></div><div>Action: Notify Requestors and Ccs<br></div><div>Template: Correspondence<br></div><div>Global<br></div><div>Enabled<br></div><div><br></div><div>Additionally, for testing purposes I took care of setting user@domain1 as a 'requestor'<br>
</div><div><br>I've tested the code snippet on a regular perl script and it works 100% of the time, however<br></div><div>RT is not doing what I need.<br><br></div><div>Any help will be highly appreciated<br></div><div>
<br>-- <br>Hugo Escobar<br><br><br><img title="AFS_logo.png" alt="AFS_logo.png" src="cid:ii_12ddc99660bf2d8d" height="35" width="171"><br><br>Follow us on Facebook and Linked-In<br clear="all"><br><a href="http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864" target="_blank"><img title="facebook-24x24.png" alt="facebook-24x24.png" src="cid:ii_12ddc9e6256d137a"></a> <a href="http://www.linkedin.com/companies/1006276" target="_blank"><img title="linkedin-24x24.png" alt="linkedin-24x24.png" src="cid:ii_12ddc9cb29a3a5d5"></a><br>
</div></div></div></div></div></div>