• Resolved sunbaghdad

    (@sunbaghdad)


    I have WPLMS theme that uses BuddyPress plugin.
    Initially, my problem was I didn’t get any HTML emails.
    So I did the following:
    1. Downloaded WP HTML Mail plugin.
    2. HTML works perfectly fine with header and footer and links, however, there were no line brakes whatsoever in the whole email, just everything on the same line.
    3. To fix line break problem I went to: wp-html-mail/includes/class-haet-mail.php
    and I added: $email[‘message’] = wpautop($email[‘message’]); at the end.

    Line breaks problem got fixed but the email body is back to plain text, not HTML.

    What should I do to have a full HTML email with line breaks?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just use our free buddypress add on.
    ?WP HTML Mail buddypress“

    Thread Starter sunbaghdad

    (@sunbaghdad)

    Thank you so much for replying,

    I’m sorry but the BuddyPress add on does not resolve the issue, the problem is still persisting.

    The addon is only adding this code for me:
    $email[‘message’] = wpautop($email[‘message’]);
    However, the email body is still plain text, I mean bold text or links are not displaying properly.
    See the email with HTML code in bp press core ON with the add on or the code mentioned above::
    https://prnt.sc/rt3z83
    See the email with HTML in bp press OFF with the add on or the code mentioned above:
    https://prnt.sc/rt3zys

    • This reply was modified 4 years, 8 months ago by sunbaghdad. Reason: forget to say thank you

    Sorry for the delay… Did you check this from the plugin page:

    BUDDYPRESS PHPMAILER AND SMTP DELIVERY
    BuddyPress uses a customized instance of PHPMailer to send multipart email (plain text AND HTML at the same time). To make our email design work we have to switch to wp_mail() function which doesn’t work with multipart messages. On the other hand side this makes it possible to use SMTP plugins like Post SMTP Mailer, WP Mail SMTP and many more with BuddyPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Line Breaks and HTML Issues’ is closed to new replies.