I would like to use HTML::Mason to render one of my components to send in an email. I'm doing something wrong though because I get my perl script emailed instead of the rendered component! What do I need to do?

my $outbuf;
    my $interp = HTML::Mason::Interp->new
        (comp_root  => '/usr/home/rperry/public_html/',
         data_dir   => '/var/spool/mason/mail',
         out_method => \$outbuf,
         allow_globals => [qw($dbh %session)]
        );
          my $path='/test.restoredirect.com/templates/';
$interp->exec("$path/$q->{$ID}->{template}", patientID => $q-> {$ID}->{patientID}, RxNumber => $q->{$ID}->{RxNumber}, username => $q- >{$ID}->{username});



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to