dedications->slug . '/new-dedication/user/' . $from_user_id; $post_link = get_permalink($post_id); /* Set up and send the message */ $to = $reciever_ud->user_email; $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( '%s dedicated a song 2 u!', 'bp-dedication' ), stripslashes($sender_name) ); $message = sprintf( __( '%s sent you a dedication! To see %s\'s dedication: %s --------------------- ', 'bp-dedication' ), $sender_name, $sender_name, $post_link ); //$message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'bp-example' ), $reciever_settings_link ); // Send it! wp_mail( $to, $subject, $message ); } add_action( 'bp_dedication_create_new_dedication', 'bp_dedication_send_dedication_notification', 10, 3 ); ?>