Support

Home Forums Event Espresso Premium Notifications not received when the recipient is on MS Exchange

Notifications not received when the recipient is on MS Exchange

Posted: November 19, 2019 at 8:15 am

Viewing 7 reply threads


Fred Dreiling

November 19, 2019 at 8:15 am

WordPress Version: 5.3
PHP Version: 7.2.23
MySQL Version: 5.5.5
Event Espresso Version: 4.10.2.p
WordPress Address (URL): https://www.fndponyclub.org.uk/bookings
Site address (URL): https://www.fndponyclub.org.uk/bookings

Email for the Club is handled by Microsoft Exchange as part of Office365. Until September Event authors were correctly notified when registrations were completed. All Event Authors have a club address in the form: secretary@, showjumping@, dressage@fndponyclub.org.uk!

For compliance purposes we have discouraged the use of personal email addresses. But if the author uses their club email address, the notification fails. If they use their personal email that is not part of the tenancy, it succeeds!

All was well until September of this year 2019 with proper notifications using club addresses working as they should! It was unfortunate that I was not informed sufficiently early that notifications were not being received or I could have attempted a restore!


Josh

  • Support Staff

November 19, 2019 at 9:12 am

I wonder if there was a change to the email headers so now those emails are rejected?

May I ask is your site set to just use the web server’s email software or is it set up to use a transactional email service like PostMark, SendGrind, or Mandrill?


Fred Dreiling

November 20, 2019 at 5:56 am

Whilst I think I understand your reply, no third party services are engaged to handle mail.

cPanel is set up to use Remote Mail Exchanger. “The server will not accept mail for this domain. The system sends all mail for this domain to the lowest numbered mail exchanger.”

Therfore as I understand, all mail is routed via the only MX record in the Records table as “fndponyclub-org-uk.mail.protection.outlook.com”

We have not knowlingly made any changes to the site or routing.

When I log into WP Dashboard and “Event Espresso – Editing Email Payment Received Template (Event Admin Recipient)” to test email recipients; if the mail recipient is handled via MS Exchange (as my personal mail is ****@****.com) albeit on a differnt tenancy, that email fails to be received! However, send to a Gmail, iCloud, Hotmail or it appears any account that is not an Exchange account; works!

I have whitelisted our web hosting address within Exchange to no effect!


Josh

  • Support Staff

November 20, 2019 at 8:47 am

The first step to troubleshoot this would be to find out if the recipient in question can receive a generic email from your site.

You can install & activate this plugin on your site:
https://wordpress.org/plugins/check-email/

It will add an email check page to the Tools menu.

Then you use it to send an email to the email address in question, then check the inbox.


Fred Dreiling

November 20, 2019 at 11:20 am

Cheers Josh, installed Check Mail and that worked. It sent and mail was received to tenancy email addresses in the form of support@, webmaster@, ***@gmail.com, ****@randomdomain.com, ***@hotmail.com

So personally I am even more confused. Was there during September and update to EE4 that was auto installed that may have changed the way email to tenancy emails were handled, or has something broken?

Thanks for the help btw!


Josh

  • Support Staff

November 20, 2019 at 12:59 pm

Was there during September and update to EE4 that was auto installed that may have changed the way email to tenancy emails were handled

There haven’t been updates to EE’s email functions in quite a while, I checked it’s been two years.

This is a shot in the dark, but if the emails are rejected because no MIME-type is set you could try fixing by adding this to a custom code snippets plugin:

add_filter(
    'FHEE__EE_Email_messenger___headers',
    'my_add_mime_type_to_email_headers',
    10,
    3
);
function my_add_mime_type_to_email_headers(
    $headers,
    $type,
    $messenger
) {
  $headers[] = 'MIME-Version: 1.0';
  return $headers;
}

You can add the above to a functions plugin by following this guide.

If the above makes no difference, another approach that could help would be to install this plugin:

https://wordpress.org/plugins/wp-mail-smtp/

then configure the plugin’s integration that allows you to use your existing Office 365 account to send your emails. I would think sending the emails from an office 365 account would help prevent those emails from being rejected.


Fred Dreiling

November 21, 2019 at 7:04 am

Cheers Josh

I decided on the chicken route and bought the premium version of the plugin. Three hours and three attempts later I got Azure to bite and the plugin was authorized.

Yeah it works, though strangely, the Event admin email (showjumping@fndponyclub.org.uk) notification takes ages to come through whilst the test registrant (me using support@fndponyclub.org.uk) came through almost immediately!

If you have any thoughts on the delay (althought not catastrophic), it would be appreciated!

But thanks again!


Tony

  • Support Staff

November 21, 2019 at 7:21 am

Event Espresso uses a queue system which works on WP_Cron, meaning it needs visitors to the site to work.

So you message is ‘triggered’ and set in the queue to ‘generate’ on the next WP_Cron instance (the default time is 5 mins but it needs a hit on a page on the site to trigger so it can take longer than that).

After generation it again sits in the queue for ‘sending’, again that takes another hit on a page to trigger WP_Cron after the schedule time (5 mins again).

So if your site is currently not getting much traffic that may explain the delay.

If you add a registration and go to Event Espresso -> Messages you’ll see the message activity table and a message with ‘No receipient’ will show (that’s queued for generation so it doesn’t know the recipient yet)

Either click the check box and select ‘Generate and send now’ in the bulk actions, then hit apply.

Or..

Click the Spanner icon in the Actions column, then hit the double arrow icon to send.

Does the email come through quicker then?

(Test emails skip the queue system as they are intended as a test of the email, not the queue system)

Viewing 7 reply threads

The support post ‘Notifications not received when the recipient is on MS Exchange’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso