sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:
if ( param() ) { if ( $message | $subject eq "" ) { print "Your subject or email content was missing."; } else { foreach ( sort keys(%emails) ) { open( MAIL, "| $sendmail -t" ); print MAIL "To: $_"; print MAIL "From: $adminmail"; print MAIL "Subject: $subject\n\n"; print MAIL "$message"; print MAIL "."; close(MAIL); print "Email was sent to: $_!<br>"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending looped emails
by The Mad Hatter (Priest) on Apr 07, 2003 at 00:25 UTC | |
by sulfericacid (Deacon) on Apr 07, 2003 at 00:40 UTC | |
by The Mad Hatter (Priest) on Apr 07, 2003 at 00:52 UTC | |
|
Re: Sending looped emails
by Pardus (Pilgrim) on Apr 07, 2003 at 03:03 UTC | |
|
•Re: Sending looped emails
by merlyn (Sage) on Apr 08, 2003 at 04:36 UTC | |
|
Re: Sending looped emails
by Jenda (Abbot) on Apr 07, 2003 at 19:55 UTC |