in reply to Re^3: Just can sent only ONE mail every time.
in thread Just can sent only ONE mail every time.
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 |