(10-19-2021, 07:22 PM)scampsmith Wrote: The 'SaveToFile' gave me only this this (I'm assuming the actual attachment should be included, but it's clearly not)
Yes, it should be included. That output is very wrong, especially if you are including text alongside the attachment. It SHOULD look more like this instead:
Code:
From: "order@hiemstraoptical.com" <order@hiemstraoptical.com>
Subject: Testing
To: scampsmith@hiemstraoptical.com
MIME-Version: 1.0
Date: Tue, 19 Oct 2021 15:15:29 -0400
Content-Type: multipart/mixed;
boundary="497g4jflA=_NV5HJ64xjgrj7VJHVqagsh3"
--497g4jflA=_NV5HJ64xjgrj7VJHVqagsh3
Content-Type: text/plain
Plain text here...
--497g4jflA=_NV5HJ64xjgrj7VJHVqagsh3
Content-Type: application/pdf;
name="Beilby.Rx_0001.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Beilby.Rx_0001.pdf"
Content-ID: <Beilby.Rx_0001.pdf>
<base64 data here...>
--497g4jflA=_NV5HJ64xjgrj7VJHVqagsh3--
You didn't answered my earlier question - which version of Indy 10 are you using exactly? Are you using the one that shipped with Delphi 2010, or have you upgraded to a more up-to-date version?