koacamper has asked for the wisdom of the Perl Monks concerning the following question:
What am I missing? Thanks for any help, From, Extreme Newbie$sender="email@\somewhere.com"; $recipient="email@\somewhere.com"; $subject="Database Entry"; $mail_prog = "/usr/sbin/sendmail -t"; $mail_out="true"; if($mail_out) { &SendMail($recipient,$sender); sub SendMail { open(MAIL, "|$mail_prog -t") || &error("Could not send out ema +ils"); print MAIL "To: $recipient \n"; print MAIL "From: $sender <$sender>\n"; print MAIL "Subject: database entry\n"; print MAIL "added\n\n"; print MAIL"--------------------------------------------------- +--------------------------------------\n"; print MAIL ""; print MAIL "\n\n"; print MAIL "\n\n"; close (MAIL); } # end SendMail function } # end if statement
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple SendMail Question
by $code or die (Deacon) on Jan 23, 2001 at 03:08 UTC | |
|
Re: Simple SendMail Question
by repson (Chaplain) on Jan 23, 2001 at 04:18 UTC | |
|
Re: Simple SendMail Question
by tune (Curate) on Jan 23, 2001 at 04:19 UTC | |
|
Re: Simple SendMail Question
by Maclir (Curate) on Jan 23, 2001 at 04:05 UTC | |
|
Re: Simple SendMail Question
by InfiniteSilence (Curate) on Jan 23, 2001 at 20:54 UTC | |
|
Re: Simple SendMail Question
by Chady (Priest) on Jan 23, 2001 at 23:24 UTC |