minixman has asked for the wisdom of the Perl Monks concerning the following question:
I have even triedmy $ServerName = SMAILSVR}; $smtp = Net::SMTP->new($ServerName) my $MailFrom = 'postmaster\@testme.com'; my $MailTo1 = testmeuser@home.com}; $smtp->mail( $MailFrom ); $smtp->to( $MailTo1 ); @to = ('testme@yahoo.co.uk'); $smtp->recipient(@to); $smtp->data(); $smtp->datasend(); $smtp->quit();
Am i missing something or does Net:SMTP not handle multiple e-mail addreses, i have checked the module, and it looks like it.my $ServerName = SMAILSVR}; $smtp = Net::SMTP->new($ServerName) my $MailFrom = 'postmaster\@testme.com'; my $MailTo1 = testmeuser@home.com}; my $MailTo2 = testmeuser1@home.com}; $smtp->mail( $MailFrom ); $smtp->to( $MailTo1 ); $smtp->to( $MailTo2 ); $smtp->data(); $smtp->datasend(); $smtp->quit();
2003-05-01 edit ybiC: <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net:SMTP multiple sent to
by perlplexer (Hermit) on May 01, 2003 at 15:38 UTC | |
by minixman (Beadle) on May 01, 2003 at 16:16 UTC | |
by iburrell (Chaplain) on May 01, 2003 at 16:41 UTC | |
by perlplexer (Hermit) on May 01, 2003 at 16:28 UTC | |
|
Re: Net:SMTP multiple sent to
by semio (Friar) on May 01, 2003 at 17:27 UTC |