• Resolved andrew55

    (@andrew55)


    SendGrid seems to be removing line breaks from BuddyPress plain text emails. I have plugin set to send text-only emails, which is what we want.

    When user receives email from SendGrid plugin, line breaks are gone.

    Is there a solution for this issue?

    Thanks for any help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Anonymous User 12640152

    (@anonymized-12640152)

    Hello

    This issue may be caused by the Plain Content option being enabled on your SendGrid account. By default, if this option is INACTIVE in your settings, plaintext emails will be automatically converted to HTML and this may cause your emails to lose some newlines.

    Please log into your SendGrid dashboard, and go to Settings > Mail Settings and turn ON the Plain Content option and try again.

    Let us know if it worked.

    Thank you,
    SendGrid

    Thread Starter andrew55

    (@andrew55)

    Thank you for the reply. I tested “Plain Content” in admin both ways, several times, and I’m still getting the same results. Lines that are suppose to be blank are missing.

    Emails are delivered like this:

    Hello testuser1234,
    You are receiving this email because you subscribed to a forum in the Community. 
    testuser123 wrote a new reply to a topic: test Please login to see the new reply:

    Instead of like this (as they should be):

    Hello testuser1234,
    
    You are receiving this email because you subscribed to a forum in the LifeLeap Community. 
    
    testuser123 wrote a new reply to a topic: test Please login to see the new reply:

    Any other ideas on what might be causing this issue or what can be done to resolve this?

    Thanks for any help.

    Anonymous User 12640152

    (@anonymized-12640152)

    Hello.

    We have identified the issue and this will be fixed in one of the next versions of this plugin. Whitespace in plaintext is normalized prior to sending. We will add a configuration parameter for you to be able to disable this normalization.

    We apologize for any inconvenience this might have caused you. As a temporary solution you could try sending the HTML version of BuddyPress emails.

    Thank you very much for reporting this issue.

    Thread Starter andrew55

    (@andrew55)

    Thank you for the reply.

    Is there a temporary fix I can use, even a hack, until this issue is resolved?

    Anonymous User 12640152

    (@anonymized-12640152)

    Hi @andrew55,

    Monday we will release a new version with this fix.

    Thank you,
    SendGrid

    Thread Starter andrew55

    (@andrew55)

    That’s great news. Thank you very much.

    Anonymous User 12640152

    (@anonymized-12640152)

    Hello.

    We have released a fix for this issue in the latest version 1.11.6. However to preserve backwards compatibility we added a configuration flag to enable it.

    Please add the following line to your wp-config.php file:

    define('SENDGRID_DISABLE_BP_NORMALIZE_WHITESPACE', '1');

    Please note that this line should be added anywhere before the line that reads: “That’s all, stop editing! Happy blogging.” It has no effect if it is added after that line.

    If you encounter any more issues, please open a new support thread.

    Thank you,
    SendGrid

    Thread Starter andrew55

    (@andrew55)

    Thank you. Emails look great now. I added line of code to wp-config.php file.

    Do I keep this code in the wp-config.php file forever?

    Anonymous User 12640152

    (@anonymized-12640152)

    Hello.

    Yes. If this would be on by default, we would affect existing users that use plaintext for Buddypress and want the newlines stripped from their emails.

    Thank you,
    SendGrid

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘missing line breaks from BuddyPress plain text emails’ is closed to new replies.