Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Custom BuddyPress email
Tagged: bp-email, buddypress, HTML-mail, situation
- This topic has 6 replies, 3 voices, and was last updated 4 years, 10 months ago by logan.
Viewing 7 posts - 1 through 7 (of 7 total)
-
AuthorPosts
-
December 25, 2019 at 12:21 pm #237689Makarand ManeSpectatorHi Mr. Vibe, I would like to add custom BuddyPress email for custom situation. Let me know
- How to add custom situation for email?
- How to execute email on particular situation?
December 26, 2019 at 12:01 pm #237743VeronicaModeratorhi, we also followed the above ones to execute the emails but if you want something different then explain it in more detail we can provide you custom code for that.December 27, 2019 at 9:51 am #237806Makarand ManeSpectatorHi Veronica, I have did implementation using link I mentioned. Issue I am facing is with HTML mails.- Mails are not going in html format. It is sending plain text mails. I mentioned in other topics. I have used postman smtp plugin. but still it is sending plain text mails.
- Inside plain text mails it is not considering next lines. In final mail all next lines are removed.
December 27, 2019 at 10:53 am #237822loganMemberHey Makrand, I hope you are doing well. for these:- How to add custom situations for email?
- How to execute email on particular situation?
for this:- mails are not going in html format. It is sending plain text mails. I mentioned in other topics. I have used postman smtp plugin. but still it is sending plain text mails.
- Inside plain text mails it is not considering next lines. In final mail all next lines are removed.
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/html';
}and if above does not works remove it and try this one :
add_filter( 'bp_email_use_wp_mail', '__return_true ' );
if above does not work then use this one:
add_filter( 'bp_email_use_wp_mail', '__return_false ' );
for better understanding have a look on buddypress codex. refer: https://share.getcloudapp.com/Z4uw6WqPDecember 27, 2019 at 2:45 pm #237851Makarand ManeSpectatorFixed. I usedadd_filter( 'bp_email_use_wp_mail', '__return_true ' );
Cheers!December 27, 2019 at 2:59 pm #237852Makarand ManeSpectatorAlso I test it with Cimy Swift SMTP, it's workingDecember 28, 2019 at 8:57 am #237889loganMemberHaha, you are a true developer, I admire your works. i visited your website and projects its impressive. happy new year my friend. -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
- The topic ‘Custom BuddyPress email’ is closed to new replies.