>
> When invoking Embperl::Mail I have to specify an inputfile, e.g.
>
> Embperl::Mail::Execute({inputfile=>'msg.htm',
> subject=>'error $msgnr: $msgtxt', from=>'[EMAIL PROTECTED]',
> reply-to=>'[EMAIL PROTECTED]', to=>'[EMAIL PROTECTED]'}, );
>
> Unfortunately msg.htm is a completely separate namespace
> which does not appear to share any variables with the invoking file.
>
When you call it from another Embperl page, you get the same global Embperl
variables, like %fdat, the Embperl request and application object ($epreq
and $epapp). You can also pass parameters like:
Embperl::Mail::Execute({inputfile=>'msg.htm',
subject=>'error $msgnr: $msgtxt', from=>'[EMAIL PROTECTED]',
reply-to=>'[EMAIL PROTECTED]', to=>'[EMAIL PROTECTED]'},
param => [1,2,3],
);
These will appear in the msg.htm in @param
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]