Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdMessageClient problem
#8
(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?

Reply


Messages In This Thread
IdMessageClient problem - by scampsmith - 10-18-2021, 07:36 PM
RE: IdMessageClient problem - by rlebeau - 10-19-2021, 12:01 AM
RE: IdMessageClient problem - by Robert Gilland - 10-19-2021, 12:05 AM
RE: IdMessageClient problem - by rlebeau - 10-19-2021, 12:44 AM
RE: IdMessageClient problem - by scampsmith - 10-19-2021, 01:59 PM
RE: IdMessageClient problem - by rlebeau - 10-19-2021, 05:52 PM
RE: IdMessageClient problem - by scampsmith - 10-19-2021, 07:22 PM
RE: IdMessageClient problem - by rlebeau - 10-19-2021, 10:50 PM
RE: IdMessageClient problem - by scampsmith - 10-20-2021, 12:21 PM
RE: IdMessageClient problem - by rlebeau - 10-20-2021, 06:02 PM
RE: IdMessageClient problem - by scampsmith - 10-20-2021, 07:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)