Hi,
researching this for a day already, but can't seem to get it to work.
Trying to write a simple script that would send an attachment from the box to windows recipients.
script currently looks like this:
-------------------------------------------------
#!/usr/bin/ksh
# send del to DW and other recipients
echo "Please put in a DEL name:"
read FILENAME
uuencode $FILENAME $FILENAME | sendmail -v -f
sender@company.com -t
recipient@company.com < header
-------------------------------------------------
The header looks like this:
-------------------------------------------------
To:
recipient@company.com
From:
sender@company.com
Subject: Please find the file attached
-------------------------------------------------
The problem i'm having is header fields get populated but no file gets attached.
If i don't use the header file/data like so:
uuencode $DELNAME $DELNAME | sendmail -f
sender@company.com -t
recipient@company.com
The file gets attached but header information (to: , subject: ..) and there's no body message.
If i don't use the uuencode feature and just use this command:
sendmail -f
ender@company.com -t
recipient@company.com < FILENAME
the file name contents just appear in the body of the message instead of attaching it to an email.
Help would be greatly appreciated.