perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Embperl::Mail bug
Date Thu, 07 Apr 2005 07:04:31 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'

- 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


Mime
View raw message