> I realized what the problem was. Blank lines.

It's been a wile since I worked with the email format, but I seem to remember empty lines¹ have syntactic meaning to separate header and different "paragraph portions" (like content and attachments) of the email. (I'm too tired to look up the correct terminology)

So I guess that Outlook doesn't see the whole HTML to belong to the same part of the email, because it splits on paragraphs. ³

I bet, you could just base64 encode your HTML and it would work ... provided you set the correct content encoding. Outlook should happily accept empty lines inside HTML then. ²

You could also insert space characters where they are ignored by HTML to have non-empty lines.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Update

¹) i.e., a line with nothing preceding the CRLF

²) I always use base64 for inserted content outside my control. ⁴

³) in the meantime I tried to look it up in the (many) RFCs and there is a mention of an old format interfering...

⁴) NB: there is also a 1000 characters per line restriction in emails, which is solved by base64 with its maximum line length of 76 characters.


In reply to Re: Is ChatGPT like having a thousand monkeys? (Empty lines in emails) by LanX
in thread Is ChatGPT like having a thousand monkeys? by talexb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.