[Http-webtest-general] Re: Small bug in ReportPlugin.pm
Brought to you by:
m_ilya,
richardanderson
From: Amit K. <ak...@ho...> - 2003-03-31 21:15:20
|
Hi Ilya, Thanks for the pointer. You were absolutely right. I changed mail_addresses = ( us...@do... us...@do... ) and it worked perfectly. Also, I know I can do this but did you consider having the subject Line as a parameter that could be set in the wtscript file and which could be passed to ReportPlugin.pm. Regards, A >From: Ilya Martynov <il...@ma...> >To: "Amit Kaul" <ak...@ho...> >CC: htt...@li... >Subject: Re: Small bug in ReportPlugin.pm >Date: Sat, 29 Mar 2003 18:29:43 +0300 > > >>>>> On Fri, 28 Mar 2003 17:18:07 -0500, "Amit Kaul" ><ak...@ho...> said: > >AK> Hi Ilya, >AK> Thanks for the quick reply to my email. I am sorry but I just tested >AK> the new version (i.e version 2.02) and I still get the error. > >AK> For some reason when you do > >AK> $self->_smtp_cmd($smtp, 'to', @$mail_addresses); > >AK> it does not pass an array to NET::SMTP, which is why I had done the >AK> assignment of it to a temp variable and then split it to push it onto >AK> an array @to. > > >> my $temp = join / /, @$mail_addresses; > >> my @to = split /\s+/, $temp; # push elements into @to array > >AK> I was wondering what exactly is @$mail_addresses. Is it an array? Or >AK> an hash. > >$mail_addresses is an array ref. I've tested the new code and it >should work. > >My guess that you write wtscript like > >mail_addresses = ( us...@do... us...@do... ) > >what is wrong as is string 'us...@do... us...@do...' is >treated as single parameter. > >It should be written as > >mail_addresses = ( us...@do... > us...@do... ) > > > >-- >Ilya Martynov, il...@ip... >CTO IPonWEB (UK) Ltd >Quality Perl Programming and Unix Support >UK managed @ offshore prices - http://www.iponweb.net >Personal website - http://martynov.org > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |