Re: problem sending mail

[email protected] (Ask Bjoern Hansen) 10 Apr 2002 23:09:45 -0700
Newsgroups perl.scripts,perl.beginners.cgi,perl.beginners
Message-ID <[email protected]>
[email protected] (T3tsu0) writes:

> sub send_mail {
>         open(MAIL,"|$mail_prog -t") || &error("unable to send mail to:
> $to_name - $to_addr");
[...]
>         close(MAIL);

you really want to put error checking on the close() too.  In many
cases you won't be told until then if the open fails.

-- 
ask bjoern hansen, http://ask.netcetera.dk/   !try; do();