Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Course news email not parse HTML
Tagged: HTML Emails
- This topic has 4 replies, 2 voices, and was last updated 4 years, 10 months ago by logan.
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
February 17, 2020 at 9:51 pm #242889IntuagencySpectatorHi I'm using Postman SMTP plugin to deliver emails. these codes don't work: <p style="box-sizing: border-box; margin: 0px 0px 22px; color: #4b4d4d; font-family: Lato; font-size: 14px;">add_filter( 'bp_email_use_wp_mail', '__return_true' );</p> or <p style="box-sizing: border-box; margin: 0px 0px 22px; color: #4b4d4d; font-family: Lato; font-size: 14px;">add_filter( 'bp_email_use_wp_mail', '__return_false' );</p> <span class="tlid-translation translation" lang="en"><span class="" title="">All students are receiving illegible emails. What should I do?</span></span>February 17, 2020 at 11:07 pm #242891IntuagencySpectatorupdate: this is email sent: https://prnt.sc/r3s3ak in the lower part the e-mail is correct (html) so wordpress is sending the email correctlyFebruary 18, 2020 at 8:15 am #242928loganMemberHi there, 1) [IMP.] Please try using the Postman SMTP for emailing. Refer : https://wplms.io/support/knowledge-base/postman-smtp-for-emails/ 2) else Try adding this code in wp-admin > Plugins > Editor > select WPLMS Customizer Plugin > wplms-customizer.php add_filter('wp_mail_content_type', 'text/plain', function () { return 'text/html'; },999); 3)else try this one for email please try adding this code in your wplms-customizer.php file in wplms customizer plugin : : add_filter( 'wp_mail_content_type', 'set_content_type' ,9999999); function set_content_type( $content_type ) { return 'text/plain'; } and if above does not works remove it and try this one : add_filter( 'bp_email_use_wp_mail', '__return_true ' ); if it does not work then use this: add_filter( 'bp_email_use_wp_mail', '__return_false ' );February 18, 2020 at 9:20 am #242940IntuagencySpectatorHi there, as I have already written, I am using Postman SMTP for emailing. I have tried all the codes shown, but they don't work.February 19, 2020 at 7:38 am #243096loganMemberHave you tried this:
2) else Try adding this code in wp-admin > Plugins > Editor > select WPLMS Customizer Plugin > wplms-customizer.php
add_filter('wp_mail_content_type', 'text/plain', function () {
return 'text/html'; },999);3)else try this one for email please try adding this code in your wplms-customizer.php file in wplms customizer plugin : :
add_filter( 'wp_mail_content_type', 'set_content_type' ,9999999);
function set_content_type( $content_type ) {
return 'text/plain';
}
this is the issue with buddypress not the wplms ones. thats why i suggested you the solution provided by them. here is the detailed information:- https://buddypress.org/support/topic/buddypress-mails-get-sent-text-only/
- https://buddypress.org/support/topic/buddypress-messagecomment-emails-not-sending-since-update/
- https://wordpress.org/support/topic/emails-from-bbpressbuddypress-sent-in-plain-text-instead-of-html/
- https://wordpress.org/support/topic/emails-sending-out-in-raw-html/
- https://wordpress.org/support/topic/emails-and-messages-showing-html-format/
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- The topic ‘Course news email not parse HTML’ is closed to new replies.