in reply to Re^3: Just can sent only ONE mail every time.
in thread Just can sent only ONE mail every time.
Fixed! Thanks everybody.
I only add a sub "over" and comment the sub "quit" in sendMail :
I only add a sub "over" and comment the sub "quit" in sendMail :
sub over { $self = @_; $self->{SMTP}->quit;
Then i add the sub in end of my a.pl
... use MySMTP; $mail = new MySMTP(); my @lists = $mail->get_list(); for my $addr (@list) { $mail->sendMail($addr,"how are you"); } $mail->over(); ## Add here
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Just can sent only ONE mail every time.
by WalkingZero (Sexton) on Aug 28, 2007 at 04:19 UTC | |
by pysome (Scribe) on Aug 29, 2007 at 07:37 UTC |
In Section
Seekers of Perl Wisdom