Hi friends, I know this is off the list, but I am pretty sure that some of you might figure it out and give me some clues as what am I doing wrong. I get the eror "ksh: send_email: cannot execute" sendmail is in /usr/sbin I changed the first line to reflect that, but still I get the error.
---------------------------------------------------------------------------- --------- #!/usr/bin ID="1600TEST_SQL_as_an_attachment" ATTACH="Y" R1="[EMAIL PROTECTED]" FILEPATH="/home/mj80380/hari.txt" S="TEST SQL as an attachment" ALL="[EMAIL PROTECTED]" NEWFILE='/home/mj80380/rik.txt' echo "From: HARI" >>$NEWFILE echo "To: $ALL" >>$NEWFILE echo "Subject: $S" >>$NEWFILE echo "MIME-Version: 1.0" >>$NEWFILE echo 'Content-Type: Multipart/Mixed; boundary="~-~-~-~-~"' >>$NEWFILE echo "" >>$NEWFILE echo "--~-~-~-~-~" >>$NEWFILE echo "Content-type: Application/text; name=$FILEPATH" >>$NEWFILE echo "Content-disposition: attachment; filename=`basename $FILEPATH`" >>$NEWFILE FILE echo "" >>$NEWFILE cat $FILEPATH >>$NEWFILE sendmail -t <$NEWFILE rm $NEWFILE rm $FILEPATH ---------------------------------------------------------------------------- --------------- appreciate your help. Thanks, Hari.. CONFIDENTIALITY NOTICE: This e-mail message, including all attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. You may NOT use, disclose, copy or disseminate this information. If you are not the intended recipient, please contact the sender by reply e-mail immediately. Please destroy all copies of the original message and all attachments. Your cooperation is greatly appreciated. Columbus Regional Hospital 2400 East 17th Street Columbus, Indiana 47201 _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs