Email Users 4.7.2 released

Late last week there was a request on the WordPress Support Forum to add a filter to allow control over the HTML which wraps email content (post/page notifications or email to users/groups).

email_users_html_wrapper

This seemed like a reasonable request so I decided to look into it.  Adding a filter was fairly easy.  If the mailusers_html_wrapper filter exists, the default, and very basic, HTML wrapper is ignored and the filter is expected to properly construct the necessary HTML to wrap around email content.

This is the result of a email using the example filter now supplied as part of the plugin as viewed on my iPhone.

You can find the update in the WordPress plugin repository or an an update on your Dashboard.


/**
* To customize the look of HTML email or to integrate with other
* plugins which enhance wp_mail() (e.g. WP Better Emails), use this
* hook to wrap the email content with whatever HTML is desired - or
* in some cases, none at all if another plugin will be adding the
* necessary HTML.
*
* This example wraps an "Urgent" message and table around the email
* content so the background can be styled. A table is the best way
* to do this because not all mail clients will recognize styling
* elements such as BODY and DIV like a traditional web page.
*
* Drop this code snippet and modify to suit your needs into your
* theme's functions.php file.
*
* @see https://wordpress.org/plugins/wp-better-emails/
* @see https://litmus.com/blog/background-colors-html-email
*
*/
function mailusers_sample_html_wrapper($subject, $message, $footer)
{
// Wrap the HTML in proper header and body tags
// add some CSS styling to make the email look good.

$mailtext = sprintf('
<html>
<head>
<title>%s</title>
<style>
table { border: 1px solid black; width: 800px; background-color: #c5f6c0; }
td { background-color: #c5f6c0 }
</style>
</head>
<body>
<table class="content">
<tr>
<td class="content">
<div class="content">
<h1>This is an Urgent Message from Email Users!</h1>
%s
</div>
<div class="footer">
%s
</div>
</td>
</tr>
</table>
</body>
</html>', $subject, $message, $footer) ;

return $mailtext ;
}

add_filter('mailusers_html_wrapper', 'mailusers_sample_html_wrapper', 10, 3) ;

Google Forms v0.77-beta-1 available

This morning I uploaded beta-1 of Google Forms v0.77.  This release would only be of interest to users who are using the deprecated gform shortcode and ware worried about PHP warnings in the log file (see this post on the WordPress Support Forum).

The warnings were a result of the plugin looking for meta data which is stored with the Custom Post Type (recommended) usage of Google Forms.  The fix skips the check when using the gform shortcode thus eliminating the PHP warnings in the log file.

Unless there is a significant bug reported I will likely release this update fairly quickly as I view the changes made as very low risk.

Google Forms Beta (7987 downloads )

Google Forms v0.75-beta-1 available

This evening I posted beta-1 of Google Forms v0.75.  This beta release contains a new option to turn off the HTML filter which has been part of Google Forms since the very early iterations of the plugin.  In the early days of the Google Forms plugin, the HTML Google generated was full of unnecessary stuff and as a result, it tended to mess up the rendering of the form within WordPress.  Over the years Google has iterated on forms a number of times and the HTML is much cleaner and includes new attributes for things like accessibility.

Based on a user request to support the accessibility attributes I decided to offer an option to turn off filtering completely.  The disable HTML filtering option is located on the Advanced Tab of the plugin settings.

GForm_SS_73

Google Forms Beta (7987 downloads )

Google Forms v0.73-beta-4

This evening I released beta-4 of Google Forms v0.73.  This builds add support for Right to Left (RTL) languages by adding a column order option when using multiple columns.  This functionality was requested earlier today on the Support Forum and was very easy to implement as the jQuery Columnizer plugin already supported RTL.  The only other change is an update of the language translation files.

Google Forms Beta (7987 downloads )

Google Forms v0.73-beta-3 available

This morning I released beta-3 of Google Forms v0.73. This beta build addresses a request recently posted on the WordPress Support Forum to allow the notification email to be sent to multiple email addresses.

This request has been implemented – multiple notification email addresses may be entered, they should be separated by a semicolon character (;).

Unless there is a an issue reported in the next day or so, I plan to release v0.73 shortly.

Google Forms Beta (7987 downloads )

Email Users v4.7.1-beta-1 available

This afternoon I posted beta-1 of Email Users v4.7.1.  This release addresses a warning related to the max_input_vars setting when the server doesn’t have the configuration variable defined.  This happens on some older server configurations, notably, those running PHP 5.3.8 and earlier.

This build also adds support for the WordPress editable_roles filter which was recently requested on the WordPress Support Forum.

Email Users Beta (5016 downloads )

Email Users v4.7.0-beta-1 available

This evening I posted beta-1 of Email Users v4.7.0.  This build addresses, or at least recognizes, an issue recently reported in the WordPress Support forum where email was not being sent when a large number of users were being selected.

The crux of this problem is the PHP max_input_vars configuration setting which by default, is set to 1000.EU_SS_39

Every user selected on the form plus the other form fields are submitted as “input vars”.  If ~990 or more users were selected, the input vars would be exhausted and the form submit would be missing required fields.  The result was no email sent and the form being redisplayed for the user.

While I can’t change the setting of PHP’s max_input_vars setting, I can detect when the scenario, I can detect when it might be a problem and warn the user.

EU_SS_38

The warning shown above will now be displayed whenever the number of users which could be selected approaches or exceeds the current setting of max_input_vars.

Hopefully this will alleviate the confusion around this issue.  Please report back on any bugs or odd behavior.

Email Users Beta (5016 downloads )

Email Users v4.6.11-beta-1 available

I’ve had a number of reports recently regarding loss of line breaks when sending out Post or Page notifications.  Nothing has changed in Email Users with respect to formatting the post prior to sending it via email.  However, the fact that several people has run into this problem concerns me.

The only thing I can think of which would result in loss of line breaks is if the the_content() or the_excerpt() functions are not calling the wpauto filter (which both do by default unless turned off).  As noted in the Codex page, some plugins and themes remove the action.

I’ve added a check within the Email Users Dashboard widget to report the state of the hooks which could reformat the text.   The the_content hook is the most likely to change the formatting of the post content but the other two listed could also affect it in some cases.

EU_SS_37

Email Users Beta (5016 downloads )

If you are having this problem, please try this download and let me know what your Dashboard looks like.

Swim Team v1.42 is finally out

Yesterday I finally released Swim Team v1.42.  With almost 50 downloads of the beta and no problems reported, I figured it was as tested as it was going to get!  Some of the fixes and enhancements include:

  • Added checking and error messages for creation of temporary files used during export (CSV, HY3, SD3, RE1).
  • Added support for Event Number suffixes.
  • Added support for Transients as temporary storage when exporting data or generating reports.
  • Major change to how files are included to better support newer versions of PHP. The PHP include_path is no longer modified nor assumed.
  • Fixed bug in MyJobs which appears when no active season is designated.

Functionally this release is identical to v1.42-beta-8.  You can find the update in the WordPress plugin repository or as an update on your Dashboard.

Email Users v4.6.10-beta-4 available

This morning I released beta-2 and very quickly afterward, because I found a bugs, beta-3, then beta-4 of Email Users v4.6.10.  This beta-4 build addresses a couple enhancements that were recently raised in the Support Forum.

  1. Templates – while not exactly templates per se, the Post/Page notification email will now allow the user to change the email subject and body content.  It will still be initially populated based on the default template.
  2. Hooks – there are now two hooks which other plugins and themes can use to modify the behavior of wp_mail().  The two hooks are mailusers_before_wp_mail and mailusers_after_wp_mail.  The primary use for this is to account for other plugins which modify the sender address.

Additionally, the Notification email process now has a preview of what the email will look like based on the current settings.  The preview will not reflect any changes made to the subject or email content until it is submitted.

EU_SS_36

Email Users Beta (5016 downloads )