
01-28-2008
|
|
Supporter
|
|
Join Date: Feb 2005
Posts: 49
|
|
Quote:
Originally Posted by KevinADC
Code:
sub mail_report {
$Mailer = '/usr/sbin/sendmail joe@somewhere.net';
open MAIL,"|$Mailer";
print MAIL "Subject: $X connection attempt \n\n";#two newlines after subject
open(MESSAGE, "<", "$outdir$X") or die "$!";
print MAIL <MESSAGE>;
close MESSAGE;
close MAIL;
} #End sub mail_report
some mails servers and mail clients will reject emails with no "from" header
|
Thanks KevinADC
That fixed the problem.
thumper
|