• Resolved Dimono

    (@dimono)


    Hello,

    When users get an approved or denied message, they get it from a email that starts with: wordpress@ , a simple title: Membership Approved and the sender name WordPress. Is there a way to adjust this?

    Also, i like to style my mails with html. Is this possible?

    It would be great if I can adjust the mails with the “Emails” function of BuddyPress.

    https://www.ads-software.com/plugins/bp-registration-options/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looks like I have a WordPress filter in place for the subject/title. It’s going to be either “Membership Denied” or “Memebership Approved”. $message is going to be one of the messages on our options screen, so you probably won’t need to do much there in the filter.

    $mailme = array(
    	'user_email' => $user->data->user_email,
    	'user_subject' => $subject,
    	'user_message' => str_replace( '[username]', $user->data->user_login, $message )
    );
    
    $mailme_filtered = apply_filters( 'bpro_hook_before_email', $mailme, $user );

    Example override:
    `function dimono_custom_subject( $mail_args ) {
    $mail_args[‘user_subject’] = ‘Some custom value’;
    return $mail_args;
    }
    add_filter( ‘bpro_hook_before_email’, ‘dimono_custom_subject’ );

    I know I have attempts for the HTML email part, and I know I was recently checking on it, like two weeks ago, but I can’t recall if I for sure fixed it or not. If I have, it hasn’t been rolled out in the 4.2.x line, but can be if necessary. Otherwise it’d not be till 4.3.0

    Thread Starter Dimono

    (@dimono)

    Hello,

    Thanks for your quick response. I found another solution to change headers. I translated the plugin and added the language files in wp-content/languages/plugins . Sorry I didn’t think of that before.

    HTML would still be great. That way I can style my emails the same as BuddyPress and other plugins that send emails.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    awesome to hear you got a solution for your own thing. My plan is to integrate with the BP email stuff in the long run, just haven’t had a chance to fully sit down and work out necessary steps and changes needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adjust email headers and use html’ is closed to new replies.