Quote:
>Hello,
>I have the following code in my script:
>open (MAIL, "|/usr/lib/sendmail -t") || &ErrorMessage("error opening
>sendmail") ;
That error message is misleading.
If sendmail has a problem &ErrorMessage will NOT be called.
You should have a look at the Perl FAQ, part 8:
"Why doesn't open() return an error when a pipe open fails?"
Quote:
>close (MAIL) ;
Better check the return value from close() too when open()ed
with a pipe.
Quote:
>Is it possible to send also a copy or even a blind copy?
Yes. Use the print() function to print the appropriate header(s).
--
Tad McClellan SGML consulting
Fort Worth, Texas