Hi,
I have written one script which will send alert mail to users when quota exeeeds more than 80%.
my script :
(it is part of my total script)
unless(open (MAIL, "|/usr/sbin/sendmail -t "))
{
print "error.\n";
warn "Error starting sendmail: $!";
}
else{
print MAIL "From: srinu\@blr.sc.txi.com\n";
print MAIL "To: srinivasa.marrapu\@txi.com\n";
print MAIL "Subject: test subject\n\n";
print MAIL "test mail message";
close(MAIL) || warn "Error closing mail: $!";
print "Mail sent.\n";
}

But I am getting following error;
No recipient addresses found in header.
NoteEmail id what i have given is correct.)
Any help.....
Thanks.
sri.