/** * Sends notification to user when his listing has been approved. * * @param object $post * * @return void */ function va_send_approved_notification( $post ) { $recipient = get_user_by( 'id', $post->post_author ); $content = ''; $content .= html( 'p', sprintf( __( 'Hello %s,', APP_TD ), $recipient->display_name ) ); $content .= html( 'p', sprintf( __( 'We are thrilled to let you know that your listing %s is now active on our website.', APP_TD ), $recipient->display_name) ); $content .= html( 'p', sprintf( __( 'If you have any additional listings, please feel free to add them at anytime by logging into your account and clicking “Add a New Listing”.', APP_TD ), $recipient->display_name) ); $content .= html( 'p', sprintf( __( 'Keep in mind we have other great ways to reach health-minded Canadians. Reply to this email if you would like to learn more.', APP_TD ), $recipient->display_name) ); $blogname = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); $subject = sprintf( __( 'The Healthy Shopper - Your Listing is Active!', APP_TD ), $blogname, $post->post_title ); appthemes_send_email( $recipient->user_email, $subject, $content ); }
There are currently 1 users browsing this thread. (0 members and 1 guests)