Change “reply to” email address
-
Hi, your plugin is working great except that the default reply-to address has changed from [email protected] to my administrative email address. I saw your instructions:
bbp_subscription_email_from( $from ) // $from can be a string or array(‘name’=>string, ‘address’=>string)
I am afraid I am not expert enough to know how to correctly insert this into my functions file. Could you please give me a specific example, using $from to be the organization name, and the [email protected]? I have added this code already and it works like a charm:
add_filter( ‘bbp_forum_subscription_email_subject’, function( $subject, $forum_id, $topic_id ) {
$blog_name = get_bloginfo( ‘name’ );
$topic_author_display_name = bbp_get_topic_author_display_name( $topic_id );
$topic_title = wp_specialchars_decode( strip_tags( bbp_get_topic_title( $topic_id ) ), ENT_QUOTES );
return “[$blog_name] New topic: $topic_title by $topic_author_display_name”;
}, 10, 3);Thanks so much, I really appreciate this plugin.
- The topic ‘Change “reply to” email address’ is closed to new replies.