Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdMessage - html content being damaged..
#6
(07-24-2024, 06:06 AM)rlebeau Wrote:
(07-23-2024, 09:52 PM)Justin Case Wrote: Just one slightly odd quirk, while it now displays perfectly in yahoo and makes it across multiple servers to get there, once looking at it in the yahoo mail list, yahoo displays an attachment icon - which it does not do for other html emails with both plain and html text.

I would have to see the raw email data as seen by Yahoo.  Offhand, what you have shown so far should not cause any email reader to think an attachment is present.

Well I've made a discovery...
I have two test accounts configured in outlook express which both send under the same domain but one sends via my local server which then connects to Mercury32 on my VPS. The other sends straight through Mercury32.

I've just sent the same exact email via both accounts. The one that connects to Mercury has no problems - yahoo shows no paperclip for attachments. The account that sends through my local Indy powered server does.

When I looked at the raw email (yahoo is handy for that at least) something jumped out at me straight away - content disposition is inline for the mail from my server.

This is from my Indy powered server:

Code:
Subject: test
Date: Thu, 25 Jul 2024 22:09:21 +0100
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="NtbHst4quINU52X8cLNqs7EIjOic=_sH6I"
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-CMAE-Envelope: MS4xfLlI2abP0lH2gt5cfVMeILBJCZsARPuuJqRok25HOpLnbtTDnyIKwergjgZVJvMYX5lU/IDpdkMPdgaIBZ8Thtra+cFWiGAasAuBiXbFguOFI2t945z/
nAtP9qPVyPrLoFqmSjrGe06q5SBGBvDUPbvkwEVHucqwLPg6/Ba3JT56Jp4wgjHARhjzxO1+H2Oi1Q==
Content-Length: 741

This is a multi-part message in MIME format.

--NtbHst4quINU52X8cLNqs7EIjOic=_sH6I
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


This is a test message

--NtbHst4quINU52X8cLNqs7EIjOic=_sH6I
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-88=
59-1">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>This is a test message</BODY></HTML>

--NtbHst4quINU52X8cLNqs7EIjOic=_sH6I--


This is what comes via Mercury32:
Code:
Subject: test
Date: Thu, 25 Jul 2024 22:07:06 +0100
MIME-Version: 1.0
Content-Type: multipart/alternative;
    boundary="----=_NextPart_000_054F_01DADEDE.FCDDEF00"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-CMAE-Envelope: MS4xfGWnjfNUAPxQA+GpHzGe5P6tnovzl2g0614758I4MIiWA4N9A/0uIu9t3hDwWmpBbGi2SRVIOv3ySkq25+w8iXSrcTeEM9vw75ZDJ14Jm/Zt7jqa4KFV
rSuBoWtLyOaLY2tB5WRbYW+dPTNRt+Xa68LHA+55pn6XYueDzN0unRObl2F39Ju3aiv0IJo524Q9hQ==
Content-Length: 707

This is a multi-part message in MIME format.

------=_NextPart_000_054F_01DADEDE.FCDDEF00
Content-Type: text/plain;
    charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


This is a test message
------=_NextPart_000_054F_01DADEDE.FCDDEF00
Content-Type: text/html;
    charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>This is a test message</BODY></HTML>

------=_NextPart_000_054F_01DADEDE.FCDDEF00--


Obviously I'm not completely sure if it's the content disposition thing or something in the headers (I can send those for both emails by PM if you like? - a lot of sensitive stuff in them).
Reply


Messages In This Thread
RE: TIdMessage - html content being damaged.. - by Justin Case - 07-25-2024, 09:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)