[HRPM] Sendmail question

cathleen cathleen at visi.net
Fri Oct 4 09:52:04 CDT 2002


Hi all,

I'm having some trouble getting a script to work with sendmail and I'm
wondering if I'm just missing something really obvious. Here's what I
am working with:

open(MAIL,"| /usr/sbin/sendmail -t"); 
print MAIL "X-Sender: Marketing \n";
print MAIL "To: $mail_recipients \n";
print MAIL "From: $from_recipients \n";
print MAIL "Reply-To: $mail_recipients \n";
print MAIL "Subject: $subject \n";

print MAIL "$file_error \n";

close(MAIL);

If it isn't the code is there some way I can check that sendmail is
working?

Oh, and I don't have access to sendmail.pm so that isn't an option.

Thanks!

cathleen
-----
"I seek a revolution that I can
bring ALL of my selves to" - Pat Parker




More information about the Norfolk-pm mailing list