[Rt-devel] Send Template with external scrip

Iban Cardona i Subiela icardona at serialnet.net
Wed Jan 26 08:06:24 EST 2011


Yes! It runs!

Thank you so much!

On 01/26/2011 02:02 PM, Emmanuel Lacour wrote:
> On Tue, Jan 18, 2011 at 04:00:37PM +0100, Iban Cardona i Subiela wrote:
>> Hello,
>>
>> I have an external scrip with this code:
>>
>> my $template = RT::Template->new($RT::SystemUser);
>> $template->LoadGlobalTemplate('blablabla');
>>
>> my $MIMEObj = $template->MIMEObj;
>> $MIMEObj->head->set('To', $emailTo);
>>
>> But I view this error "Can't call method "head" on an undefined value"
>>
> you have to first call $template->Parse( Argument => ..., TicketObj => ..., TransactionObj => ...);
>
> then MIMEObj method will return a valid Entity (currently it should
> returns undef without first calling Parse).
>
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>

-- 
Serialnet SL

*  IBAN CARDONA I SUBIELA*
  SERIALNET NETWORKING I SOFTWARE LLIURE SL
  c/Bailèn, 71Bis 5è 3a
  08009 - Barcelona
  Tel. 93 265 09 37
  http://www.serialnet.cat
  LINKEDIN:http://www.linkedin.com/in/icsbcn
<http://www.linkedin.com/in/icsbcn>

------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20110126/a326d225/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signatura.gif
Type: image/gif
Size: 4306 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20110126/a326d225/attachment.gif>


More information about the rt-devel mailing list