Hi,
> 
>   when calling Embperl::Mail twice from the same page, second 
> time it may send the body of the first email. Following code 
> sends two emails with different subjects, but with identical 
> body 'test1 test1'
> 

The problem should go away when you specify different strings as inputfile
=> parameter (This tells Embperl that your source is different, otherwise it
uses the cached one)

Gerald


> - R.
> 
> 
> use Embperl::Mail;
> 
> $mail = qq{ test1 test1 };
> Embperl::Mail::Execute({
>     input         => \$mail,
>     subject     => 'Embperl email test1',
>     to         => '[EMAIL PROTECTED]',
>     from         => '[EMAIL PROTECTED]',
> });
> 
> $mail = qq{ test2 test2 };
> Embperl::Mail::Execute({
>     input         => \$mail,
>     subject     => 'Embperl email test2',
>     to         => '[EMAIL PROTECTED]',
>     from         => '[EMAIL PROTECTED]',
> });
> 
> 
> the problem persists even if input is two completely different vars
> 
> 
> use Embperl::Mail;
> 
> $mail1 = qq{ test1 test1 };
> Embperl::Mail::Execute({
>     input         => \$mail1,
>     subject     => 'Embperl email test1',
>     to         => '[EMAIL PROTECTED]',
>     from         => '[EMAIL PROTECTED]',
> });
> 
> $mail = qq{ test2 test2 };
> Embperl::Mail::Execute({
>     input         => \$mail,
>     subject     => 'Embperl email test2',
>     to         => '[EMAIL PROTECTED]',
>     from         => '[EMAIL PROTECTED]',
> });
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to