PILCH Hartmut wrote:
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.


just use something like

$mail = "error message";
Embperl::Mail::Execute({ input => \$mail, mtime => undef, inputfile => 'error', to => ... });

or use param to pass parameters to your msg.html

- Robert

So my attempt to use Embperl::Mail for reporting something that just happened
failed.  All I can send is the same old prefabricated messages.

Do I have to resort to generating a message file from within Embperl and
then sending that?

That would be a rather awkward workaround.  In the docs I looked for ways to
send a text directly but didn't find it.

--
Hartmut Pilch 0049-89-12789608 FFII http://a2e.de/ffii



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
            S pozdravem/Best Regards

                                  Robert Germic


Prvni ceska virtualni s.r.o., Vinohradska 25/35,  CZ-120 00 Praha 2
Email: [EMAIL PROTECTED], Mob. tel.: (+420 602) 213 480

NetBooking Czech Republic s.r.o., Trebohostická 12, CZ-100 00 Praha 10
Email: [EMAIL PROTECTED], Mob. tel.: (+420 602) 512 512


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to