Email Users

Email Users

Wordpress plugin

Install on Wordpress

App Details

A plugin for WordPress which allows you to send an email to the registered blog users. Users can send personal emails to each other. Power users can email groups of users and even notify group of users of posts.

Other

All the instructions for installation, the support forums, a FAQ, etc. can be found on the plugin home page or on the plugin overview page.

Translation

Email Users has language translation support for a number of languages. New languages and updates to existing languages are always welcome. Thank you to the people who have provided these translations.

  1. Spanish (es_ES) – Pon� J. Llaneras (last updated: 4.6.3)
  2. Bulgarian (sr_RS) – Borisa Djuraskovic (last update 4.6.2)
  3. Italian (it_IT) – ? (last updated 4.5.1)
  4. German (de_DE) – Tobias Bechtold (last updated 4.4.1)
  5. Persian (fa_IR) – ? (last updated 4.3.6)
  6. French (fr_FR) – Emilie DCCLXI (last updated 4.3.6)
  7. Russian (ru_RU) – ? (last updated 4.3.8)
  8. Chinese (zh_CN) – ? (last updated 4.5.1)
  9. Dutch (nl_NL) – Bart van Strien (last updated 4.6.3)

License

This plugin is available under the GPL license, which means that it’s free. If you use it for a commercial web site, if you appreciate my efforts or if you want to encourage me to develop and maintain it, please consider making a donation using Paypal, a secured payment solution. You just need to click the donate button on the the plugin overview page and follow the instructions.

Filters and Actions

Email Users supports a number of filters and actions.
1. Action: mailusers_before_wp_mail – called before wp_mail is called.
1. Action: mailusers_after_wp_mail – called after wp_mail is called.
1. Filter: mailusers_manipulate_headers – called before wp_mail is called.

This example shows how the mailusers_manipulate_headers filter can be used to change the headers to be compatible with wpMandrill. This code could/would be placed in your functions.php file.

/** * wpMandrill needs the recipients in the TO header instead * of the BCC header which Email Users uses by default. This * filter will move all of the recipients from the BCC header * into the TO header and clean up any formatting and then nuke * the BCC header. * */ function mailusers_mandrill_headers($to, $headers, $bcc) { // Copy the BCC headers to the TO header without the "Bcc:" prefix $to = preg_replace('/^Bcc:\s+/', '', $bcc) ; // Empty out the BCC header $bcc = array() ; return array($to, $headers, $bcc) ; } add_filter('mailusers_manipulate_headers', 'mailusers_mandrill_headers', 10, 3) ; 

Custom Filter Usage

Email Users provides the ability to send email to a very specific set of users using a custom meta filter. To create a special mail list, you will need to add something similar to the following to your theme’s functions.php file or create a separate plugin file.

The mailusers_register_user_custom_meta_filter() and mailusers_register_group_custom_meta_filter() actions each take 3-4 parameters:
1. Label – text that will appear on the WordPress Email-Users menu (users) or in the Recipient List (groups).
1. Meta Key – the meta key to search for in the user meta table.
1. Meta Value – the value to match against in the user meta table.
1. Meta Compare – optional, defaults to ‘=’. The type of comparison to be performed.

This example will filter the user list to only those users where the first name is Alex.

add_action( 'mailusers_user_custom_meta_filter', 'first_name_alex', 5 ); function first_name_alex() { mailusers_register_user_custom_meta_filter('First Name: Alex', 'first_name', 'Alex'); } 

Regular SQL comparisons (=, !=, etc.) can be performed. Wildcard matches (LIKE, NOT LIKE) are not supported due to how the WordPress get_users() API currently handles LIKE comparison. A better solution is to use the REGEXP/NOT REGEXP constructs added in WordPress 3.7. Regular Expressions allow you to select groups of users based on matching meta values like first or last name or ranges within them.

add_action( 'mailusers_user_custom_meta_filter', 'first_names_starting_with_anything_but_d', 5 ); function first_names_starting_with_anything_but_d() { mailusers_register_user_custom_meta_filter('First Name: Not D', 'first_name', '^D', 'NOT REGEXP'); } add_action( 'mailusers_user_custom_meta_filter', 'last_names_starting_with_m', 5 ); function last_names_starting_with_m() { mailusers_register_user_custom_meta_filter('Last Name: M', 'last_name', '^M', 'REGEXP'); } add_action( 'mailusers_user_custom_meta_filter', 'last_names_starting_with_s_through_z', 5 ); function last_names_starting_with_s_through_z() { mailusers_register_user_custom_meta_filter('Last Name: Z', 'last_name', '^[S-Z]', 'REGEXP'); } 

In addition to filtering on User Meta data to build a custom list of users, you can now define custom groups based on User Meta data.

add_action( 'mailusers_group_custom_meta_filter', 'send_to_fire_department', 5 ); function send_to_fire_department() { mailusers_register_group_custom_meta_filter('Fire Department', 'department', 'fire'); } add_action( 'mailusers_group_custom_meta_filter', 'send_to_police_department', 5 ); function send_to_police_department() { mailusers_register_group_custom_meta_filter('Police Department', 'department', 'police'); } 

In addition to defining specific Meta Key and Value pairs, Email Users also supports a filter to generate the Meta Group filters based on a Meta Key. The Meta Key filter supports two optional arguments – a Meta Value and a function callback to generate the label. Neither is required. When the label callback is used, it receives two arguments, both strings, the Meta Key and Meta Value. It must return a string.

// Define action to send to blog followers add_action( 'mailusers_group_custom_meta_key_filter', 'send_to_my_blog_followers', 5 ); function send_to_my_blog_followers() { mailusers_register_group_custom_meta_key_filter('blog_follower'); } function send_to_departments_label($mk, $mv) { return(ucwords($mk) . ' = ' . ucwords($mv)) ; } // Define action to send to departments using custom callback to generate the label add_action( 'mailusers_group_custom_meta_key_filter', 'send_to_departments', 5 ); function send_to_departments() { mailusers_register_group_custom_meta_key_filter('department', null, 'send_to_departments_label'); } function send_to_departments_label($mk, $mv) { return(ucwords($mk) . ' = ' . ucwords($mv)) ; } 

New in v4.5.0 is an action, mailusers_update_custom_meta_filters, which can be used to dynamically update Meta Filters before they’re used for recipient selection or email address retrieval. The example below leverages the Meta Key Department and its various values to define and update a new Meta Key called publicworks. Anytime a Group Email is sent or Post/Page notification is initiated, this action will fire and rebuild the publicworks meta key based on the values of the department meta key. This sort of action could be used to create more complex meta value relationships or to integrate other plugins.

add_action( 'mailusers_group_custom_meta_filter', 'send_to_public_works', 5 ); function send_to_public_works() { mailusers_register_group_custom_meta_filter('Public Works', 'publicworks', true); } add_action( 'mailusers_update_custom_meta_filters', 'update_publicworks_meta_filter', 5 ); function update_publicworks_meta_filter() { $pw_mk = 'publicworks' ; $dept_mk = 'department' ; // Define the valid matches - the array keys match user // meta keys and the array values match the user meta values. // // The array could contain a mixed set of meta keys and values // in order to group users based on an arbitrary collection of // user meta data. $publicworks = array( array($dept_mk => 'fire'), array($dept_mk => 'police'), array($dept_mk => 'water and sewer'), array($dept_mk => 'parks and recreation'), ) ; // Remove all instances of the Public Works meta key // to account for employees no longer with Public Works $uq = new WP_User_Query(array('meta_key' => $pw_mk)) ; foreach ($uq->get_results() as $u) delete_user_meta($u->ID, $pw_mk) ; // Loop through the departs and select Users accordingly foreach ($publicworks as $pw) { $uq = new WP_User_Query(array('meta_key' => $dept_mk, 'meta_value' => $pw[$dept_mk])) ; // Loop through the users in the department and tag them as Public Works employees foreach ($uq->get_results() as $u) update_user_meta($u->ID, $pw_mk, true) ; } } 

Pricing

Starting from $0 per month.

Check Out the Ratio Widget

By Common Ninja

RatioTry For Free!

App Info

Rating

Reviewers

62 reviews

Tags

admin
email
list
users

Developed By

Vincent Mimoun-Prat

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Ratio for Wordpress logo

Ratio

Create interactive infographics with a ratio widget that uses custom icons, dynamic tooltips, and clear visuals to help visitors understand data quickly.

Website Translator for Wordpress logo

Website Translator

Add a translation widget to your site so users can switch languages easily and access content in their preferred language.

Video Gallery for Wordpress logo

Video Gallery

Showcase videos with a video gallery that organizes clips from multiple sources in clear visual layouts that keep visitors watching and support higher conversions.

Threads Feed for Wordpress logo

Threads Feed

Show Threads posts in a live feed that keeps content fresh, builds social proof, and helps visitors engage on your site.

Company Branch List for Wordpress logo

Company Branch List

Present all your locations with a clear company branch list that helps customers find nearby offices, understand key details, and enjoy a smoother experience.

Cookies Consent Bar for Wordpress logo

Cookies Consent Bar

Display a cookies consent bar that explains usage and supports GDPR compliance, enhancing user trust and legal clarity.

Size Chart for Wordpress logo

Size Chart

Add a flexible size chart with visual guides and category tabs to help users choose accurate measurements while shopping.

WhatsApp Chat for Wordpress logo

WhatsApp Chat

Add WhatsApp Chat to your site to communicate with visitors, deliver instant support, and create a smoother, more trustworthy user experience.

Skill Flip Cards for Wordpress logo

Skill Flip Cards

Use skill flip cards to showcase your abilities in a clear, interactive format that strengthens your profile and improves your chances of getting hired.

PDF Flipbook for Wordpress logo

PDF Flipbook

Transform PDFs into interactive flipbooks with a PDF flipbook widget that improves reading and keeps visitors engaged.

Payment Button for Wordpress logo

Payment Button

Use a payment button for secure PayPal or Stripe checkout to simplify online payments and help increase sales.

Charts & Graphs for Wordpress logo

Charts & Graphs

Add charts and graphs to your site to present data clearly, help visitors understand insights faster, and support more confident decision making.

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms