I am trying to include an attachment to my sendmail eml file. The current eml file (order.eml) has the following contents
From: Sender <sender@email.com>
To: client@email.co.za
Subject: Report
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="B835649000072104Jul07"
--B835649000072104Jul07
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Body Copy
--B835649000072104Jul07
Content-Type: application/pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="por5151.pdf"
base64 por5151.pdf
--B835649000072104Jul07--
both the order.eml and por5151.pdf file are in the same directory and I try to send it with
# /usr/sbin/sendmail -t < order.eml
When the email arrives I can see the por5151.pdf in the attachments but it is blank (0 bytes). I don't know why this is and I am struggling to fix it