in reply to Re^5: Is ChatGPT like having a thousand monkeys? (Blank lines in emails)
in thread Is ChatGPT like having a thousand monkeys?

I have this part ..

--17410280190.8F1407fC3.912618 Date: Mon, 3 Mar 2025 13:53:38 -0500 Content-Type: text/plain <html> <head> <title>Daily Sage Issues</title> <style> body { font-family: sans-serif; } table { border: 1px solid black; border-spacing: 0px; border-collap +se: separate } td { border: 1px solid black; padding: 5px; } td.right { text-align: right; } td.left { text-align: left; } td.center { text-align: center; } td.bold { text-align: right; font-weight: bold; } div.head { text-align: center; font-size: 24px; } </style> </head> <body> <h2>Sage IC Issues - SG1</h2> ...
And I'm intrigued to see that the content type is labelled as text/plain (probably the default that Email::Simple::Markdown creates). I wonder if I switch that to text/html if the blank line problem would go away. It could be that the message arrives as text/plain, but Outlook checks it out and says, "Hey, this is HTML! I can render this!", then sees a blank line, goes back to displaying regular text until the "HTML!" code pops back into gear and it goes back to rendering.

Alex / talexb / Toronto

For a long time, I had a link in my .sig going to Groklaw. I heard that as of December 2024, this link is dead. Still, thanks to PJ for all your work, we owe you so much. RIP Groklaw -- 2003 to 2013.

  • Comment on Re^6: Is ChatGPT like having a thousand monkeys? (Blank lines in emails)
  • Download Code

Replies are listed 'Best First'.
Re^7: Is ChatGPT like having a thousand monkeys? ( Markdown != HTML )
by LanX (Saint) on Mar 26, 2025 at 01:12 UTC
    I've never worked with Email::Simple::Markdown, but the doc says you feed it with Markdown and it creates a multi-part email with the original text and the generated HTML version.

    From your previous description mentioning templates it seems you fed it with HTML right away, which could explain all your problems.

    Probably you just want to use Email::Simple ?

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

    update

    NB: please note also that lines longer than 78 characters (80 with CR LF) are discouraged by the RFC. (>998 are forbidden)