... there and now I have this script running from my cron everyday at 6:00am (-300 GMT). :o)#!/usr/bin/perl # Fortune via mail my ($recipients,$fortune,@recipients); # get subscribers open(READ,'/home/bbq/fortune.recipients.txt') || die(); while(<READ>) { chop; $recipients = push(@recipients,$_); } close(READ); # get fortune $fortune = `fortune`; # compose + send the email open(PIPE,"|/usr/lib/sendmail -t"); print PIPE "From: bbq\@bbq.warp.psi.br (BBQ's Fortune Telling Machine) +\n"; print PIPE "To: bbq\@zaz.com.br (A bunch of geeks...)\n"; print PIPE "Bcc: ".join(', ',@recipients)."\n"; print PIPE "Subject: And your fortune for today is...\n\n"; print PIPE "$fortune\n"; print PIPE "Have a nice day!\n"; print PIPE "$recipients people on list.\n"; close(PIPE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Fortune Telling Machine
by BBQ (Curate) on May 28, 2000 at 04:16 UTC | |
by merlyn (Sage) on May 28, 2000 at 05:01 UTC | |
by BBQ (Curate) on May 28, 2000 at 12:49 UTC | |
by turnstep (Parson) on May 29, 2000 at 02:52 UTC | |
by Anonymous Monk on Jun 01, 2000 at 09:15 UTC | |
|
RE: Fortune Telling Machine
by Anonymous Monk on Jun 02, 2000 at 07:49 UTC | |
by Anonymous Monk on Jun 02, 2000 at 07:54 UTC | |
by davorg (Chancellor) on Jun 16, 2000 at 18:14 UTC |