Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Losing eol character using MIME::Lite

by marto (Cardinal)
on Dec 09, 2017 at 10:14 UTC ( [id://1205215]=note: print w/replies, xml ) Need Help??

in reply to Losing eol character using MIME::Lite

Is the client Microsoft outlook? If so I have seen similar problems is modern versions, for example. At work I've eve seen it display a message stating that lines had been stripped, with a 'click here to view original' option, somewhere in that awful mess of a UI they now have. Most of our emails are sent from perl on Solaris via MIME::Lite.

  • Comment on Re: Losing eol character using MIME::Lite

Replies are listed 'Best First'.
Re^2: Losing eol character using MIME::Lite
by cbeckley (Curate) on Dec 09, 2017 at 14:38 UTC

    Yes, it is Outlook, and Outlook is the culprit.

    Is there a MIME type that will instruct Outlook not to play games with the content?


      Yes, I have had the same problem with Outlook deciding to remove EOL characters. There may be an easier or better solution (and I would be interested to know), but we ended up specifying HTML content. And that works (even though the Outlook HTML renderer is not exactly the best).

        Just a guess: As far as I remember, network line endings should generally be CR+LF. (See, for example, RFC5322.) When using "\n" on Unix, this generates just the LF, not CR+LF (unless MIME::Lite replaces "\n" with CR+LF). So Outlook may actually behave correct according to the letters of the RFC in refusing to accept anything but CR+LF as a line break. Yes, it's stupid, and I would expect nothing else from Outlook.

        Try replacing "\n" with "\r\n" in the message body.


        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1205215]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-06-21 11:48 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.