Garbled html in email

Is there some kind of formatting protocol for html email? We have an automated system that sends reports by email, when I look at the source I see that they are limited to line length with "=" line break. That is, I end up with something like:

<html><body>some text some text some text some=
some text some text some text some text som<ta=
ble>some text some text some text some text <t=
r><td...

      

Does anyone have more information on what this is?

+1


source to share


4 answers


You must send the message as a multipart MIME . Best practics:

  • Always send HTML and plain text version this way for email clients that don't support HTML, or some people just disable HTML in emails (there are security / image spam issues, although many clients won't automatically - download images from untrustworthy sites anywhere case);
  • Images can be included in the message instead of direct links. Direct links save bandwidth but are spam or even a security issue (e.g. Internet Explorer had a buffer overflow error with PNG images ). Inline images are links with cid values; and
  • Use only the most basic HTML. Browser HTML support ranges from primitive to fancy. When I was doing this, we just couldn't get a consistent (or even acceptably different) look and feel across multiple email clients, which we researched, forcing us to send our reports as PDF attachments, which are in many ways preferable (they can be easily saved , for one).


As far as your malformed post goes, it seems to me that your post is misidentified as HTML, so the email client wraps lines of text in 70 characters or so.

+6


source


Your message is currently translated to "quoted printable" encoding. This is probably a problem with the generated mail headers.



+2


source


It looks like he can be quoted for print. How are the characters in the HTML image equal, are they replaced with = 3E?

Technically, there is nothing wrong with this, but it would be nice to include alternate plain text, for those people who cannot or don't want to read HTML mail (like me).

0


source


The RFC email enforces a limitation on the length of the line, in particular, each line must be no more than 78 characters, excluding CRLF. The same characters at the end of each line is just a line separator that will be parsed correctly by any HTML-capable email reader as long as the required headers are in place (Content-Text: text / html). More information on HTML in email conventions can be found here .

0


source







All Articles