Adding BCC to customer notification email
-
Hi team! In the past you helped with a function that would send an email to the customer who submitted a review. It works great! I wonder how can I add a BCC email address to monitor the flow since I don’t see you are explicitly using $headers
The function is coded as follows
/** * Sends an email to the review author when a new review is created. * * @param \GeminiLabs\SiteReviews\Review $review * @return void */ add_action('site-reviews/review/created', function ($review) { if (empty( $review->email)) { return; } $subject = "ABCD"; $message = "Thank you so much for your review! Here is what you submitted:\n\n". "Rating: {$review->rating}-stars\n". "Title: {$review->title}\n". "Review: {$review->content}\n\n". "Your coupon code is: ABCDEFG"; if (!wp_mail($review->email, $subject, $message)) { apply_filters('glsr_log', null, 'The notification to <'.$review->email.'> was not sent. Please verify that your server is able to send emails correctly through WordPress.'); } });
Thanks!!!
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding BCC to customer notification email’ is closed to new replies.