• Resolved Robert.S

    (@roberts-1)


    Hi there, and thanks for a great plugin.

    This was working okay before I started using wpMandrill (to send WordPress email via Mandrill’s servers). But now the styling of email notifications is horrible – it is all concatenated (run together) in one lump of text, and hard to read.

    wpMandrill takes over the wp_mail hook, so I wondered if that was messing with the bbPress Notify (No Spam) headers or something similar?

    I’m happy to paste a workaround code in my functions.php if you have it!

    Thanks,

    Robert

    https://www.ads-software.com/plugins/bbpress-notify-nospam/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author useStrict

    (@usestrict)

    Hi Robert,

    Sorry for the late reply. I’ll have to test wpMandrill to see what exactly it’s doing. From your description, it sounds like it’s expecting different line terminators or something like that.

    Can you please post a sample of the email template that you have saved in the Settings -> Forums so I can test?

    Thanks,
    Vinny

    Thread Starter Robert.S

    (@roberts-1)

    NO worries, Vinny – I appreciate the support!

    It’s definitely a line-break issue. If you need me to, I can post a link to a screenshot of the two different versions – pre- and post-Mandrill.

    Here’s what’s in my email template (I didn’t bother with the subject line for now):

    —-

    A new topic has been posted by [topic-author].

    Topic title: [topic-title]

    Topic url: [topic-url]

    [topic-replyurl]

    [topic-content]

    —-

    Let me know if there’s any testing you’d like me to do.

    Thanks again!

    Plugin Author useStrict

    (@usestrict)

    Hi Robert,

    I installed wpMandrill and found that it’s indeed Mandrill that’s causing it. Make sure you’ve selected the option to replace “\n” with BR tags in Settings -> Mandrill.

    Thread Starter Robert.S

    (@roberts-1)

    Ah, thanks Vinny!

    I remember seeing that setting when I installed wpMandrill, and left it unchecked, probably because Woocommerce sends html emails.

    I’ve now checked it and will keep my fingers crossed! (I think the Woocommerce html emails draw on custom email templates I’ve already edited, so hopefully they use the raw html code anyway)

    Thanks very much for the very good support!

    Robert

    Thread Starter Robert.S

    (@roberts-1)

    Hi again Vinny – I had to switch off that option in “Settings -> Mandrill” because the Woocommerce Customer Invoices look horrible! Yikes.

    I know it’s not really an issue with your plugin – something about how wpMandrill is affecting yours – is there a workaround or something I can add to functions.php to restore the correct line breaks in bbPress Notify (No Spam)? We get quite dense (and sometimes looong!) replies in our forum and they’re so hard to read!

    Thanks again, sorry for the issue coming back to you.

    Robert

    Plugin Author useStrict

    (@usestrict)

    Can you post a screenshot of how the WooCommerce Customer Invoices look? I’ll try to find an alternate solution to wpMandrill and perhaps I’ll have some luck looking at how WC is affected.

    Thread Starter Robert.S

    (@roberts-1)

    Sure thing!

    Here is the pre-Mandrill version (just a portion of my sales notification – very similar to the customer invoice):

    https://www.dropbox.com/s/ebekgtm0e0r9zh5/before-mandrill-version.jpg?dl=0

    And here are the nasty-looking line breaks if the “replace “\n” with BR tags” option is selected:

    https://www.dropbox.com/s/78qdgdjirubwhh9/mandrill-version.jpg?dl=0

    I would prefer to persist with Mandrill, as we’re using it as our main mail provider inside our CRM, so having all the domain mail processed that way really helps keep the mail authority high, I think.

    Thanks for the help!

    Plugin Author useStrict

    (@usestrict)

    Thanks Robert,

    I’ll have a look as soon as time allows.

    Thread Starter Robert.S

    (@roberts-1)

    Sure thing! No worries, it’s not exactly a mission-critical issue ??

    Thread Starter Robert.S

    (@roberts-1)

    Hi Vinny – just a small nudge – have you been able to look at this at all?

    Tnx!

    Plugin Author useStrict

    (@usestrict)

    Thanks for the nudge. This slipped through the cracks because it’s marked as resolved. I’ll try to have a fix this week.

    Plugin Author useStrict

    (@usestrict)

    I’ve added a workaround in version 1.8.1. Basically, I turn on the nl2br (via a filter that Mandrill provides) just to send the notifications, then turn it off again.

    You can manage the on/off flag by hooking into my own filter bbpnns_handle_mandrill_nl2br.

    Cheers,
    Vinny

    Thread Starter Robert.S

    (@roberts-1)

    Brilliant, thanks, Vinny. I’ve installed the update and will report back if anything is amiss!

    I really appreciate the fix, thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Styling breaks with wpMandrill?’ is closed to new replies.