with the 4th parameter of wp_mail()
you can extend the header of the Email. So you can use BCC there. This should work:
<?php
$bcc="Bcc: ";
$i = 0;
foreach( $emails as $email ){
if( $i != 0 )
$bcc .= ', ';
$bcc .= $email;
$i = 1;
}
$headers[] = $bcc;
wp_mail( '[email protected]', 'New entry!', $body, $headers );
?>
Related Posts:
- Notify admin on new submit
- How can the recipients and content for comment email notifications on a custom post type be changed?
- Send email messages after comment was submitted
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Sanitizing post content for use in an email
- Admin to user notices – best practices?
- Custom post type without editor or revisions – Notify on update?
- How to auto send email when publishing a custom post type?
- Post Via Email to a Custom Post Type
- Show admin help message across custom post type parent and child posts
- How to add notification in the sidebar of the administration panel when a Custom post type is created? [duplicate]
- Sending an email when a CPT is saved/updated (NOT when it’s created)
- Email friend for each Custom Post Type posts on a page
- Send email button in custom post type backend
- Ajax Check Post Status
- get_post_meta returning no value in custom post type alert email
- Send notifications to custom post author when custom post is edited
- Adding the_content() in custom template email
- Send notification to the admin when new custom post is submitted
- comment_notification_text filter for custom post type
- Delete “Post Published. View Post” for custom post type
- Send a conditional email notification when a custom field value changes in Post Type
- How to insert data into meta box from another plugin?
- Generate new post from email
- Send post changes to set email addresses (not users or subscribers)
- Extending post by email
- See if the email exists or not
- How to display an admin-notice after custom post type edit modification
- CPT email notification including only new value custom fields
- Send email to author of the post when the custom post status changes to published
- Send mail to author when custom post type is saved
- How to check if a new private custom post type is created?
- how to display notifications in the wordpress menu when a new post is published
- send email to all registered users when post expires
- CPT Metabox with email notification
- Emailing Authors only when a CUSTOM POST TYPE post is published- not when edited later [duplicate]
- How to create a job post by email parsing? [closed]
- Send email on creation of custom post type and use get_post_meta()
- How do I add the “orange counter” next to a Custom Post Type?
- Get The Post Type A Taxonomy Is Attached To
- Meta query with boolean true/false value
- Set custom upload path for custom post type only?
- Two Custom Post Types, Share Two Taxonomies
- Date query for a custom meta field
- How to show custom post type count in the users admin page
- Importing posts in custom post type into new website
- Timepicker-addon doesn’t show – Datepicker works fine?
- Registration and Custom Post Types – How to synchronize information?
- different template for first and second level custom post page
- Query for multiple post types does not work
- How-to leverage WordPress for creating Extended Social Profiles
- Add custom post type to Backbone collections
- pagination redirecting from page number url before page requested
- How To Create A Custom Taxonomy 404 Page
- Query Multiple Taxominies Across Multiple Post type’s
- How to enable shortcodes in a custom post type?
- Stop / prevent WordPress from updating permalinks of custom post type
- Posts Categories Are Showing In The Custom Post Type Category
- Custom post type showing index.php
- Get post count for search result based on post type
- Modification of how the data is controlled/showed and stored
- How to run filter only on custom post type edit screen
- cannot override post_types in WP_Query()
- Wrapping x posts in html without leaving empty html
- Page not found for custom post type UI plugin and taxonomy
- How to customize work area / admin area in a custom post type without plugins?
- Post loop count is not in order
- Insert Custom Post Types
- How to inherit field value from parent post into in child / sub post
- how to show records that don’t have custom meta value
- Want a custom query with just one category but from all custom post types
- WordPress CPT custom custom label
- Filter content in shortcode
- If Post type use sidebar (‘tree’)
- Convert Custom Taxonomy Posts to Normal Posts
- Sort column on meta key and meta value
- Custom menu breaks down
- ForEach Loop iterates only once when inserting product variations
- How to set post date in post_type so that it’s same as latest post in category
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Adding a Custom Post Type
- Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?
- “A post type mismatch has been detected” Error when updating custom post
- Custom fields for taxonomies with custom value for each post
- Automatically assign posts with custom field to taxonomy term
- Error [Column ‘post_title’ cannot be null] when title is disabled for Custom post type
- Change Background Color For CPT Template
- How can I make my CPT read from page-*post-type*.php?
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- How to query posts by meta keys AND under specific category?
- Custom post types & Thumbnails
- Repeatable Custom Field for Media Upload
- Change position of Post Formats box?
- How to store datetime from custom meta box so that it can be sorted by
- Add HTML before a specific div?
- Front end post or photo or both
- Is there any way of not using my_init_method in the following code (that creates a custom post type)?
- Display ONLY ONE $term (Out of 4 terms) from a Custom Taxonomy and CPT
- Url rewrite with custom post type and taxonomy
- wordpress category form fields in popup