Custom BuddyPress email

Home Forums Legacy Support Support queries How-to & Troubleshooting Custom BuddyPress email

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #237689
    Makarand Mane
    Spectator
    Hi 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?
    I checked this document: https://codex.buddypress.org/emails/custom-emails/ But I didnt got answer to above question. Regards, Makarand Mane
    #237743
    Veronica
    Moderator
    hi, 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.
    #237806
    Makarand Mane
    Spectator
    Hi Veronica, I have did implementation using link I mentioned. Issue I am facing is with HTML mails.
    1. 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.
    2. Inside plain text mails it is not considering next lines. In final mail all next lines are removed.
    Let me know how I can sort above 2 issues.
    #237822
    logan
    Member
    Hey Makrand, I hope you are doing well. for these:
    • How to add custom situations for email?
    • How to execute email on particular situation?
    we have written codes in vibe course module >> bp-course-mailer.php refer: https://share.getcloudapp.com/8Luwkv7n we are using this function: bp_get_email_tax_type(); this generally return a taxonomy then we register a post type & connect this taxonomy with the post.
    for this:
    1. 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.
    2. Inside plain text mails it is not considering next lines. In final mail all next lines are removed.
    if mail is going in plain text then it will not consider the next line :P

    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/Z4uw6WqP  
    #237851
    Makarand Mane
    Spectator
    Fixed. I used add_filter( 'bp_email_use_wp_mail', '__return_true ' ); Cheers!
    #237852
    Makarand Mane
    Spectator
    Also I test it with Cimy Swift SMTP, it's working
    #237889
    logan
    Member
    Haha, you are a true developer, I admire your works. i visited your website and projects its impressive. happy new year my friend.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Custom BuddyPress email’ is closed to new replies.