Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Emails sending in plain text, not HTML
- This topic has 7 replies, 3 voices, and was last updated 7 years, 10 months ago by
Skywalker [ ex VibeThemes].
Viewing 8 posts - 1 through 8 (of 8 total)
-
AuthorPosts
-
May 29, 2017 at 6:58 pm #114634
dmakab2
ParticipantHello, Emails are not being sent in HTML but in plain text only. The emails used to work months ago but have not worked for a long time.- I have always used Postman SMTP.
- I have disabled plugins, but none seems to be the cause of the problem.
May 29, 2017 at 7:01 pm #114635dmakab2
ParticipantThis reply has been marked as private.May 30, 2017 at 8:38 am #114688Skywalker [ ex VibeThemes]
ParticipantThis reply has been marked as private.May 30, 2017 at 2:23 pm #114767dmakab2
ParticipantThis reply has been marked as private.May 31, 2017 at 8:23 am #114839Skywalker [ ex VibeThemes]
ParticipantBuddypress' HTML Emails cannot be sent via Postman because buddypress does not allow html emails, if wp_mail() has been redeclared which POSTMAN SMTP does. But you can send the HTML emails via basic PHP mail() function. Go to wp-admin->Plugins->Editor->Choose WLMS Customiser Plugin. Edit the wplms-customiser.php file Add this code and save. Refer to this Screenshot : https://prntscr.com/fe50km add_filter( 'bp_email_use_wp_mail', function() { return false; },99); Note that upon adding this line you will not be able to send messages via POSTMAN SMTP. But you can send HTML emails via your server. Please add this code and check if this solves your issue or not.May 31, 2017 at 2:10 pm #114949liebisca
SpectatorI was working on this topic now, too. I use Postmarkapp, because it is better than postman for me, because I have a better score at mail-tester.com and it enables tracking. But I think this works the same as postman. The code from above allows me to send the HTML E-Mail, but it is not using postmark. So I just changed the code in buddypress, that forces to send the plain text. In \wp-content\plugins\buddypress\bp-core\bp-core-functions.php there is a line with "content_plaintext". Just change it to "content_html" and you are done. There is just one negative thing: the buddypress layout gets lost.May 31, 2017 at 5:28 pm #114984dmakab2
ParticipantThank you both for your answers. Without an SMTP plugin, my emails do not get delivered, so I'm sorry, Skywalker, but that is not a solution. Thankfully, my Cloudways server has an SMTP option that was easy to configure. Now my emails are sending perfectly with no added Wordpress apps.June 1, 2017 at 10:27 am #115074Skywalker [ ex VibeThemes]
ParticipantHi, @dmakab2 We are really glad to know that your issue is resolved. We are marking your topic as resolved and closing it. Thank you and have a nice day :) -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
- The topic ‘Emails sending in plain text, not HTML’ is closed to new replies.