Hello, I have written a shell script used to send a PDF to myself. I can receive the attachment, but I can't open it. I have tried the MIME-type "application/pdf" but still failed. Do you have any idea of why it's like that? Thanks so much
-----
#!/bin/sh
{
echo From: test@test.com
echo To: myself@test.com
echo Subject: testing
echo 'MIME-Version: 1.0'
echo 'Content-type: application/acrobat; name="test.pdf"'
echo ''
echo ''
echo testing boby message
echo ''
echo 'Content-Disposition: attachment; filename=test.pdf'
echo ''
cat /test/test.pdf
} | /usr/lib/sendmail myself@test.com
-----
#!/bin/sh
{
echo From: test@test.com
echo To: myself@test.com
echo Subject: testing
echo 'MIME-Version: 1.0'
echo 'Content-type: application/acrobat; name="test.pdf"'
echo ''
echo ''
echo testing boby message
echo ''
echo 'Content-Disposition: attachment; filename=test.pdf'
echo ''
cat /test/test.pdf
} | /usr/lib/sendmail myself@test.com