Hello Everyone,
I am trying to email a html file as an attachment using sendmail. It
works when I send it to my yahoo or att account, however I don't get
an email when I send it to my hotmail account. Yes, the "from" address
is on my hotmail "safe-list" & I have tried sending just a plain email
to hotmail and it works.
Here is my script: I have borrowed it from one of the postings on this
group.
### Begin script
FILENAME=test.html
echo "To: $RECEIVER" >> mailfile
echo "Subject: TEST" >> mailfile
echo "MIME-Version: 1.0" >> mailfile
echo "Content-Type: multipart/mixed; boundary=\"SGT-boundary-line\""
echo "X-MS-Has-Attach: yes" >> mailfileQuote:>> mailfile
echo "X-Mailer: AIX" >> mailfile
echo "X-Credit: ZZZ" >> mailfile
echo "\n" >> mailfile
echo "\n--SGT-boundary-line" > workfile
echo "Content-Type: text/html;" >> workfile
echo " name=\"$FILENAME\"" >> workfile
echo "Content-Transfer-Encoding: 7bit" >> workfile
echo "Content-Disposition: attachment;" >> workfile
echo " filename=\"$FILENAME\"\n" >> workfile
cat $FILENAME >> workfile
echo "\n--SGT-boundary-line--\n" >> workfile
cat workfile >> mailfile
/usr/lib/sendmail -t $RECEIVER < mailfile
### End of script
For some reason, this does not work for hotmail. Can someone shed some
light & point me in the right direction?
Thanks,
Suhas