perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Embperl::Mail bug
Date Thu, 07 Apr 2005 09:32:15 GMT
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         => 'xxx@xxx.cz',
>     from         => 'robert@robert.cz',
> });
> 
> $mail = qq{ test2 test2 };
> Embperl::Mail::Execute({
>     input         => \$mail,
>     subject     => 'Embperl email test2',
>     to         => 'xxx@xxx.cz',
>     from         => 'robert@robert.cz',
> });
> 
> 
> 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         => 'xxx@xxx.cz',
>     from         => 'robert@robert.cz',
> });
> 
> $mail = qq{ test2 test2 };
> Embperl::Mail::Execute({
>     input         => \$mail,
>     subject     => 'Embperl email test2',
>     to         => 'xxx@xxx.cz',
>     from         => 'robert@robert.cz',
> });
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message