yankeeblue has asked for the wisdom of the Perl Monks concerning the following question:
$username = $ENV{"USERNAME"}; tie @MailingList, 'Tie::File', "release_list.txt" or die "Cannot open build number file: $!"; $num_recips = @MailingList; for ($j=0; $j<$num_recips; $j++) { $tolist = $MailingList[$j]; $smtp = Net::SMTP->new('smtpmail.server.com'); $smtp->mail($username); $smtp->to($tolist); $smtp->data(); $smtp->datasend("To: $tolist\n"); $smtp->datasend("From: newuser\@server.com\n"); $smtp->datasend("Subject: Build $bldmsg\n"); $smtp->datasend("\n"); $smtp->datasend("BUILD SUMMARY:\n"); $smtp->datasend("\n"); $smtp->dataend(); $smtp->quit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble getting Net::SMPT to work
by deibyz (Hermit) on Apr 20, 2005 at 13:26 UTC | |
|
Re: Trouble getting Net::SMPT to work
by bofh_of_oz (Hermit) on Apr 20, 2005 at 13:32 UTC | |
|
Re: Trouble getting Net::SMPT to work
by gellyfish (Monsignor) on Apr 20, 2005 at 13:33 UTC | |
by yankeeblue (Novice) on Apr 20, 2005 at 15:10 UTC | |
by yankeeblue (Novice) on Apr 26, 2005 at 17:35 UTC | |
|
Re: Trouble getting Net::SMTP to work
by Transient (Hermit) on Apr 20, 2005 at 13:21 UTC | |
by NateTut (Deacon) on Apr 20, 2005 at 14:25 UTC |