<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 14 September 2013 00:19, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruz@bestpractical.com" target="_blank">ruz@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div>You should go other way around. After calling $template->Parse you call $template->MIMEObj and get MIME::Entity representing result of the template. You then can update this entity with attachments, more headers and so on.</div>
</div></div></div></blockquote><div><br></div><div style>Hi Ruslan,</div><div style><br></div><div style>Thanks for your reply. I've just tried this but now I'm wondering where I get the TicketObj and TransactionObj arguments for $template->Parse. If I use the Incident's TicketObj and TransactionObj it actually modifies the Incident's subject.</div>
<div style><br></div><div style>I cannot put the $new_ticket->Create(…) before the $template->Parse because RT::Ticket->Create requires a MIMEObj produced by $template->Parse in $template->MIMEObj. It's a chicken vs. egg issue here I think. I must be missing something but I don't know what. I also tried putting the "my $new_ticket = RT::Ticket->new($RT::SystemUser)" above the template but leave the Create below but I'm still left with no TransactionObj to use because it's generated by RT::Ticket->Create(…).</div>
<div style><br></div><div style>I've pasted a new version of my code at <a href="http://pastebin.com/UvnUC221">http://pastebin.com/UvnUC221</a>. This version modifies the subject of the Incident ($self).</div><div style>
<br></div><div style>-- <br></div></div><div dir="ltr"><div><span style="font-family:arial;font-size:small">Landon Stewart :: </span><a href="mailto:lstewart@iweb.com" style="font-family:arial;font-size:small" target="_blank">lstewart@iweb.com</a><br>
</div><span style="font-family:arial;font-size:small">Lead Specialist, Abuse and Security Management</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Spécialiste principal, gestion des abus et sécurité</span><br style="font-family:arial;font-size:small">
<span style="font-family:arial;font-size:small"><a href="http://iweb.com" target="_blank">http://iweb.com</a> :: +1 (888) 909-4932</span><br><div><span style="font-family:arial;font-size:small"><br></span></div><div><span style="font-family:arial;font-size:small"><br>
</span></div></div>
</div></div>