Howdy,

1. Can a variable store a text file with 40000+ bytes
in size?
2. How can I cc or send a message to 2 persons at the
same time using sendmail?
3. Could someone please suggest a better way than mine
to send a content of a text file using sendmail. 

Below is part of my script. The problem is if my
message is big ($eachowner.txt is over 40000 bytes)
a receiver does not get the whole message.  

$mail_message = `cat $reportdir/$eachowner.txt`;
&sendownermail($eachowner,$mail_message);

sub sendownermail{
my $to        = $_[0];
my $mail_message = $_[1];
open(SENDMAIL, "|/usr/lib/sendmail -oi -t") or die
"Cannot fork for send mail: $! \n";
print SENDMAIL<<"EOF";
From: [EMAIL PROTECTED]
To: $to\@yourhost.com
Subject: db Report

$mail_message

EOF
close(SENDMAIL) or warn "sendmail dinnot close
nicely";
}# end sendownermail

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to