in reply to Sending looped emails
If that doesn't work, then I suggest you read up on the docs and try to send a message manually the same way to see if that works.open( MAIL, "| $sendmail -t" ); print MAIL "To: $_\n"; print MAIL "From: $adminmail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$message\n"; print MAIL "."; close(MAIL); print "Email was sent to: $_!<br>";
Update Also, shouldn't $message | $subject eq "" be something like $message eq "" || $subject eq ""? Or more cleanly, !$message || !$subject.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Sending looped emails
by sulfericacid (Deacon) on Apr 07, 2003 at 00:40 UTC | |
by The Mad Hatter (Priest) on Apr 07, 2003 at 00:52 UTC |