Forum Replies Created

Viewing 15 replies - 61 through 75 (of 2,277 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    It is hard to know exactly why but based on your description, I suspect your hosting provider has some sort of limits in place which limit the number of emails you can send during some time period and/or there is a limit to the number of email addresses which can be sent at one time. This is pretty common.

    There is no solution for scheduling messages if your hosting provider limits how many emails can be sent in a specific time period. There may be other plugins which queue email but Email Users does not.

    If your hosting provider limits the number of email addresses which can appear in the email header, there is a BCC Limit setting which will break the group of recipients up into chunks and send the least amount of emails it can while staying under the limit.

    Check with your hosting provider to see if either of these limitations apply to your situation. It is also possible you have another plugin which plugs into wp_mail() which could be causing a conflict. I’d check the limits from your hosting provider first.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    This is a little hard to follow, can you clarify with a few things?

    For clarifying purposes let’s define some simple email addresses as placeholders:

    1. [email protected] – email address used by admin and to set up WordPress initially.
    2. [email protected] – email address of the user who is logged into the web site and plans to send an email message using Email Users.
    3. [email protected] – email address override used to force a “from” addreess in the mail header which is different than the user sending the email with Email Users.

    Using these sample email addresses, can you describe what is happening and what you want to happen?

    One caveat to all of this is some hosting providers re-process the mail header when sending an email with Email Users. This happens after WordPress hands off the email message to the underlying MTA which actually sends the email. If your hosting provider does this, and not all do, there is nothing WordPress / Email Users can do to change the email header for the actual recipient.

    Email Users has a debug capability (Dashboard > Settings > Email Users – on the plugin settings page look for the debug mode checkbox) where it will display the mail headers as constructed by Email Users on the Dashboard. If the headers look good there and they are different after the email is actually sent through the MTA, then your hosting provider is modifying the mail header after WordPress hands it off.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    No, this isn’t possible UNLESS you set the BCC limit to one (1) and create a filter with some custom code in it.

    By default Email Users tries to send as few messages as possible so when an email is actually sent, there are many, potentially hundreds, email addresses in the BCC header. There isn’t anyway to do this and send each user a unique email.

    IF you set the BCC limit to one (1) then each recipient receives a separate email. This isn’t recommended but it is possible and when sending email this way, the lone recipient appears int the TO header instead of the BCC header with other email addresses.

    It may be possible to use the mailusers_before_wp_mail filter combined with the BCC limit set to one (1). The filter could examine the TO header and then query the WordPress user data for the email address to get the username or first/last names and update the email body as part of the filter. This doesn’t exist right now but I think it would be possible.

    • This reply was modified 6 years, 7 months ago by Mike Walsh.
    Plugin Author Mike Walsh

    (@mpwalsh8)

    If you have a way to identify a collection of users based on a role or some other characteristic, you should be able to email them as a group. The tricky part becomes how to automatically find the specific group of users you want to target and let Email Users use it.

    The only checkout system I have used, and it has been a while since I set it up, is WooCommerce. While I never did it, I am pretty sure it would be possible to code a Meta Filter which queries the WooCommerce data to return a list of target users / email addreses.

    The Meta Filter capability is pretty powerful but it does usually require writing some PHP code.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    The example meta filter plugin does use fixed group names but you should be able to write some code which queries the available groups and builds the meta filters based on the results of those queries.

    I don’t mean to trivialize this, it isn’t a simple task but I don’t think it should be too hard either. A lot of it depends on which groups plugin you want to use and how it stores the data. If it stores it as meta data then you should be able to use the example to construct something similar. If the groups data is stored in a separate table (or tables) then all bets are off and you are left to build a new integration. If that is the case, looking at the code for the existing integrations probably makes sense.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Have you tried temporarily disabling JetPack to see if the problem goes away? I have JetPack installed on most of the sites I work with so it could be a particular feature of JetPack that is doing this.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Looks like I never answered this question, I apologize for that.

    There are two ways to do what you want:

    1. Set up groups of users and use the Send to Groups functionality. This is useful if you well known sets of users you mail to frequently. There are several user groups plugins which are supported by Email Users.
    2. You can disable the “Enhanced User Selection” option on the plugin settings page (Dashboard > Settings > Email Users) and you can then use click plus shift or control to select large groups of users at one time.

    Hope that helps.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Take a look at this post on my web site. It is from when I added the meta filter capability. There is an example plugin you can download which shows how I implemented the functionality. The plugin does nothing more than define the filters but doing this way means there are no modifications to the Email Users plugin.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Inherently there is no limit on sending emails or the number of recipients you can target at one time. There are practical limitations though, if you have a database with 20,000 users the queries Email Users does may time out in some server environments. It is hard to say definitively as there are a lot of variables.

    Email limits (max recipients, numbers of emails per hour), tend to be imposed by web hosting plans. I don’t recall seeing any issues being logged when using a SMTP plugin but I can’t say there haven’t been with 100% confidence.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    While it is hard to know for sure how every other plugin implements groups, if done right, it should be a one time thing setting up the meta filter. For the integrations I’ve already done, I have not had to do anything to update them in years. They have no dependency on the groups defined by the other plugin, it gets the data and description form the plugin and presents it as part of Email Users dynamically.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Email Users has a setting for sort order on the plugin settings page (Dashboard > Settings > Email Users). This setting should apply to the results this regular expression filters the list down to.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Email Users already supports doing this. All email is sent using wp_mail() so if you install another plugin which implements SMTP or other solution using wp_mail(), you should be good to go. Sending through Gmail is fairly common, this question comes up in this support forum from time to time.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Try something like this: “A-Am” – ‘^A[a-m]’

    This has the regular expression match a capital A to start then the second letter in the range of “a-m”.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    One more thing – if you are going to use a different user group plugin than the ones which already have an integration done, you can likely use the Meta Filter capability to hook into the groups functionality for whatever plugin you choose.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    There is integration already done for several User Groups plugins. When you install Email Users, if you go to the settings page (Dashboard > Settings > Email Users) there is a section toward the bottom of the page where it displays the status of the groups plugins which have integration.

    If any of those plugins are already installed, Email users should recognize them and use their group names in the “Send to Groups” or “Notify Groups” functions.

Viewing 15 replies - 61 through 75 (of 2,277 total)