Hi Kenn , <br><br>Any pointers on the following please . Still struggling to get this working . <br><br>Regards <br><br>Vikas <br>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Vikas Srivastava</b> <span dir="ltr"><<a href="mailto:vikas.k.srivastava@gmail.com">vikas.k.srivastava@gmail.com</a>></span><br>
Date: Fri, Feb 11, 2011 at 3:48 PM<br>Subject: Re: [rt-users] Sending Email to CustomField value<br>To: Kenneth Crocker <<a href="mailto:kfcrocker@lbl.gov">kfcrocker@lbl.gov</a>><br>Cc: <a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
<br><br><br clear="all">Hi Kenn ,<br><br>Thank you so much , but for some reasons I am not able to get it working . <br><br>Here is what I did . <br><br>Created A Template :<br>------------------------<br><br>Name : Send Email to Customer on Closure<br>
Description : Send Email to Customer on Closure<br>Content: <br><br> RT-Attach-Message: yes<br> To: {$Ticket->FirstCustomFieldValue('Customer Email')}<div class="im"><br> Subject: Request Titled: "{$Ticket->Subject}" <br>
<br></div> Some Content here .<br><br><br>Created A Scrip :<br>------------------------<br><br>Description : Email On closure<br>Condition : On Resolve<br>Action : User Defined<br>Template : Send Email to Customer on Closure<br>
Stage : TransactionCreate<br><br>Custom condition: return 1;<br>Custom action preparation code:return 1;<br>Custom action cleanup code:return 1;<br><br><br><br>When I resolved the case no email is sent to the email address mentioned in the Custom field named "Customer Email"<br>
<br>Appreciate your inputs . <br><br>Regards <br><font color="#888888"><br>Vikas</font><div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Fri, Feb 11, 2011 at 8:52 AM, Kenneth Crocker <span dir="ltr"><<a href="mailto:kfcrocker@lbl.gov" target="_blank">kfcrocker@lbl.gov</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;">
Vikas,<br><br>We do that thru the Template. Below is an example of what we do to send an email to a person selected to be the QA tester/Approver of work before it is migrated/resolved:<br><br>RT-Attach-Message: yes<br>To: {$Ticket->FirstCustomFieldValue('QA Approver')}<br>
Subject: Request Titled: "{$Ticket->Subject}" is ready to begin QA Testing<br><br>----------------------------------------------------------------------------<br>TICKET INFORMATION:<br>Queue : {$Ticket->QueueObj->Name}<br>
Number : {$Ticket->Id}<br>Subject: {$Ticket->Subject}<br>----------------------------------------------------------------------------<br>Priority is: {$Ticket->Priority}<br>Requestor : {$Ticket->Requestors->UserMembersObj->First->Name}<br>
Created by: {$Ticket->CreatorObj->Name}<br>Created on: {substr($Ticket->Created, 0, 10)}<br>Owned by: {$Ticket->OwnerObj->Name}<br>Development Started on: {substr($Ticket->Started, 0, 10)} <br>----------------------------------------------------------------------------<br>
To indicate your approval of the QA test results, merely<br>"Reply" (only) to this email with your comments:<br><br><br> Thank you,<br> {$Ticket->QueueObj->CorrespondAddress()}<br>
<br>We like to include a lot of Ticket data in our emails to the recipients. All of out templates are custom.<br><br>Hope this helps.<br><br>Kenn<br>LBNL<div><div></div><div><br><br><div class="gmail_quote">On Fri, Feb 11, 2011 at 8:00 AM, Vikas Srivastava <span dir="ltr"><<a href="mailto:vikas.k.srivastava@gmail.com" target="_blank">vikas.k.srivastava@gmail.com</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;"><pre style="font-family: arial narrow,sans-serif;"><font size="2"><font size="2"><span style="font-family: courier new,monospace;">Hi All ,</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Could you please help me in creating a scrip that sends emails to email addresses noted in custom field values . </span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">So say in CF1 i have <a href="mailto:johndoe@abc.com" target="_blank">johndoe@abc.com</a> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">And in CF2 i have <a href="mailto:mjames@abc.com" target="_blank">mjames@abc.com</a> . </span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Upon case closure I would like to emails (different content) to be sent to the above to CFs . </span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Any help would be much appreciated . </span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Regards</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Vikas</span></font><br>
</font></pre>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></div><br>