Support

Home Forums Event Espresso Premium white space in registration mail Reply To: white space in registration mail

Reply To: white space in registration mail

Author Replies
Tony # Posted on April 23, 2018 at 7:23 am

Editing core files of a plugin isn’t really a good solution as you’ll break anything else that relies on that function and you’ll lose that customization if/when you update the plugin.

// Comment line 313
// $email[‘message’] = wpautop($email[‘message’]);
// Add filter to keep <br> working:
add_filter( ‘message’, ‘nl2br’ );

That doesn’t look correct to me, add_filter( ‘message’, ‘nl2br’ ); adds ‘nl2br’ as a callback to a filter hook called ‘message’, which as far as I can tell, doesn’t exist so the above does nothing?

I think you meant: $email['message'] = nl2br($email['message']);

You’ll likely find that causes more problems, but either way, I think this is the wrong approach.

EE already includes full HTML emails, this plugin is then wrapping all of the EE content in another template and adding the EE content again, which may be expected if you edited all of the EE templates?

Do NOT follow this link or you will be banned from the site!