• Extra carriage return characters are added every line to plain text emails sent to subscribers. HTML emails format fine.

    Here is the source code (via my mail client) from one paragraph of an example email:

    I recently came across a document that perfectly illustrates this last poin=
    t: a=0D
    power point presentation by a senior Federal Reserve Bank research economis=
    t,=0D
    given at a conference aimed at school teachers specializing in economics.=
    =0D
    =0D

    That paragraph formats in my mail client like this:

    I recently came across a document that perfectly illustrates this last point: a

    power point presentation by a senior Federal Reserve Bank research economist,

    given at a conference aimed at school teachers specializing in economics.

    The =0D is the quoted-printable mime for a carriage return character, which is interpreted by all mail clients (in conjunction with the new lines) as double line breaks.

    I have a WordPress plugin that sends these emails through SMTP. To check whether this was a problem with that plugin rather than Subscribe2, I tried 3 different SMTP plugins (Easy WP SMTP, WP SMTP, and WP-Mail-SMTP — each of which have a userbase over 40,000). All had the above error, none had this issue in their support forums. The error seems to be unique to Subscribe2.

    I use SendGrid as my SMTP server. I thought the issue could be with them, but I already fixed the “Don’t convert plain text emails to HTML” setting there.

    https://support.sendgrid.com/hc/en-us/articles/200181418-Plain-text-emails-converted-to-HTML

    https://www.ads-software.com/plugins/subscribe2/

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Chuck Moulton

    (@chuckmoulton)

    I ran a lot of tests tonight making my own entries.

    I had completely clean entries. No copying from Word. No non-breaking spaces. No curly quotes. I was typing on a Windows machine in the text editor (never using the visual editor).

    Still, emails in Subscribe2 sent as quoted-printable and there was a carriage return problem.

    Thread Starter Chuck Moulton

    (@chuckmoulton)

    @mattyrob

    Thanks for the suggestions!

    I have not tested the code yet. I will test that code and check my database tomorrow night. I need to sleep a bit now though.

    Thread Starter Chuck Moulton

    (@chuckmoulton)

    Tonight I pretty much determined that I’m able to hack around the bug for paragraphs (p tag), but not for single line breaks (br tag).

    The following looks like a proper paragraph break (one line space between) both in HTML and plain text because plain text in Subscribe2 removes all the p and br tags, so I exploit the extra line break by not including a second line break between paragraphs.

    The following looks like a proper paragraph break both in HTML and plain text:

    <p>The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</p>
    <p>The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</p>
    <p>The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</p>

    However, there is no good way to hack around single line breaks. I have to use [br] in place of the actual tag here because this forum removes them.

    This renders properly as a single line break (no line space between) in HTML, but as double line breaks (one line space between) in plain text:

    <p>There once was a man from Nantucket[br /]
    Who kept all his cash in a bucket.[br /]
    But his daughter, named Nan,[br /]
    Ran away with a man[br /]
    And as for the bucket, Nantucket.</p>

    This renders properly as a single line break (no line space between) in HTML, but no line break (all on the same line) in plain text:

    <p>There once was a man from Nantucket[br /]Who kept all his cash in a bucket.[br /]But his daughter, named Nan,[br /]Ran away with a man[br /]And as for the bucket, Nantucket.</p>

    This renders properly as a single line break (no line space between) in HTML, but as double line breaks (one line space between) in plain text:

    <p>There once was a man from Nantucket
    Who kept all his cash in a bucket.
    But his daughter, named Nan,
    Ran away with a man
    And as for the bucket, Nantucket.</p>

    @chuck Moulton

    I’ve just stumbled onto this:

    https://code.google.com/a/apache-extras.org/p/phpmailer/issues/detail?id=62

    Note the very last comment re qmail – what sendmail binary is in use on the server?

    @mattyrob Great find! I might have to hit the RFC again to brush up.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘extra line breaks every line’ is closed to new replies.