Thanks for the help. I have written a little script like that but I am getting everything in the body of the email, not as an attachment. For example, if the script writes
BF2200678B955F03F173EACA
Content-Type: application/octet-stream; name="attach.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attach.txt"
VGhpcyBpcyBhIHRlc3QgZmlsZQ==
BF2200678B955F03F173EACA
to sendmail, then that is what I receive in the body of my email! Can anyone understand why it is not sent as an attachment? The base 64 bit above is just a base64 encoding of the string "This is a test file". I was expecting therefore to get an email with an attachment called attach.txt containing that string.
BF2200678B955F03F173EACA
Content-Type: application/octet-stream; name="attach.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attach.txt"
VGhpcyBpcyBhIHRlc3QgZmlsZQ==
BF2200678B955F03F173EACA
to sendmail, then that is what I receive in the body of my email! Can anyone understand why it is not sent as an attachment? The base 64 bit above is just a base64 encoding of the string "This is a test file". I was expecting therefore to get an email with an attachment called attach.txt containing that string.