get_template_and_user should be used in perl script (.pl). I don't really understand what you are trying to do. The process_message_queue.pl is a cron script and there is no "logged in user" in a terminal :)
2014-06-19 9:52 GMT+02:00 Arun Kumar <[email protected]>: > hi Jonathan, > > Thanks for your support, I did expected a Technical answer though i didn't > where to post my question > > i did try the snippet you sent before by passing the HASH keys into > get_template_and_user > function but had no results since i used > > my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( > { > template_name => "intranet-main.tmpl", > query => $query, > type => "intranet", > authnotrequired => 0, > flagsrequired => { catalogue => 1, }, > } > ); > $fromemail=C4::Members::GetMember($borrowernumber => $loggedinuser); > > this code snippet was put into Letters.pm in _send_message_by_email > function > but when i run ./process_message_queue.pl in the terminal it > displays intranet-main.tmpl in HTML format > > i dont understand where i went wrong > > Thanks in advance > > Regards > > Arunkumar > National Institute of Oceanography > Dona-Paula, Goa, India > _______________________________________________ > Koha mailing list http://koha-community.org > [email protected] > http://lists.katipo.co.nz/mailman/listinfo/koha _______________________________________________ Koha mailing list http://koha-community.org [email protected] http://lists.katipo.co.nz/mailman/listinfo/koha

