<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Yes! It runs!<br>
    <br>
    Thank you so much!<br>
    <br>
    On 01/26/2011 02:02 PM, Emmanuel Lacour wrote:
    <blockquote cite="mid:20110126130209.GI2725@easter-eggs.com"
      type="cite">
      <pre wrap="">On Tue, Jan 18, 2011 at 04:00:37PM +0100, Iban Cardona i Subiela wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello,

I have an external scrip with this code:

my $template = RT::Template-&gt;new($RT::SystemUser);
$template-&gt;LoadGlobalTemplate('blablabla');

my $MIMEObj = $template-&gt;MIMEObj;
$MIMEObj-&gt;head-&gt;set('To', $emailTo);

But I view this error "Can't call method "head" on an undefined value"

</pre>
      </blockquote>
      <pre wrap="">
you have to first call $template-&gt;Parse( Argument =&gt; ..., TicketObj =&gt; ..., TransactionObj =&gt; ...);

then MIMEObj method will return a valid Entity (currently it should
returns undef without first calling Parse).

_______________________________________________
List info: <a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel</a>

</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <title>Documento sin t&iacute;tulo</title>
      <style type="text/css">
<!--
body { font-family: Arial, Helvetica, sans-serif; color:#333333; }
.sign { font-family: Arial, Helvetica, sans-serif; font-size: 0.7em; color: #666666; }
.sign a, a:link, a:hover, a:visit { font-family: Arial, Helvetica, sans-serif; color: #999999; }
.sign hr { color: #99cc00; background-color: #99cc00; border: #99cc00 1px solid; }
-->
</style>
      <div class="sign">
        <img src="cid:part1.00090900.05020702@serialnet.net"
          alt="Serialnet SL" height="56" width="188" border="0"><br>
        <br>
        <strong>&nbsp; IBAN CARDONA I SUBIELA</strong><br>
        &nbsp; SERIALNET NETWORKING I SOFTWARE LLIURE SL<br>
        &nbsp; c/Bail&egrave;n, 71Bis 5&egrave; 3a <br>
        &nbsp; 08009 - Barcelona<br>
        &nbsp; Tel. 93 265 09 37<br>
        &nbsp; <a href="http://www.serialnet.cat">http://www.serialnet.cat</a><br>
        &nbsp; <a href="http://www.linkedin.com/in/icsbcn">LINKEDIN:http://www.linkedin.com/in/icsbcn</a><br>
        <br>
        <hr>
      </div>
    </div>
  </body>
</html>