<div dir="ltr"><br clear="all"><div><div style="font-size:12.7272720336914px">Hi,</div><div style="font-size:12.7272720336914px">I've been trying to figure out how to send an email to a specific address if a ticket was created or updated by someone NOT in a company.</div><div style="font-size:12.7272720336914px"><br></div><div style="font-size:12.7272720336914px">I tried to create a custom scrip with condition  "User Defined" , action "Notify Other Recipients", and a custom template, but I couldn't seem to get it working right.</div><div style="font-size:12.7272720336914px">Any advice would be appreciated.</div><div style="font-size:12.7272720336914px"><br></div><div style="font-size:12.7272720336914px">Thanks!</div><div style="font-size:12.7272720336914px">------------------------ <br></div><div style="font-size:12.7272720336914px">Custom scrip:</div><div style="font-size:12.7272720336914px"><br></div><div style="font-size:12.7272720336914px">User defined Condition:</div><div style="font-size:12.7272720336914px"><br></div><div style="font-size:12.7272720336914px"><div>#my $actor = $self->TransactionObj->CreatorObj;</div><div>my $actor=$self->TransactionObj->LastUpdatedByObj;</div><div><br></div><div># avoid triggering email if the person updating or creating the ticket is in the company</div><div>if ($actor->EmailAddress =~ /mycompany\.com/) {</div><div>   return 0;</div><div>}</div><div>else {</div><div>return 1;</div><div>}</div></div><div style="font-size:12.7272720336914px"><br></div><span style="font-size:12.7272720336914px">Custom action preparation code:</span><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">return 1;</span><br style="font-size:12.7272720336914px"><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">Custom action commit code:   </span><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">return 1;</span><br style="font-size:12.7272720336914px"><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">------------------------------</span><span style="font-size:12.7272720336914px">-</span><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">Custom template:</span><br style="font-size:12.7272720336914px"><br style="font-size:12.7272720336914px"><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">To:  </span><a href="mailto:notification@domainxyz.com" target="_blank" style="font-size:12.7272720336914px">notification@domainxyz.com</a><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">Subject:  {Ticket->Subject}</span><br style="font-size:12.7272720336914px"><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">Testing conditions!    </span><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px"> {$</span><span style="font-size:12.7272720336914px">RT</span><span style="font-size:12.7272720336914px">::WebURL}Ticket/Display.</span><span style="font-size:12.7272720336914px">html?id={$Ticket->id}         </span><div style="font-size:12.7272720336914px">    {$Transaction->Content()}</div></div><div class="gmail_signature"><div dir="ltr"></div></div>
</div>