are you using the latest EM version and could it be it was in the email spam folder?
Hi, sorry for the late response – I thought I’d turned on email notifications for this thread.
Yes, I’m using the latest EM, and have checked my spam. The comment notifications are going to the email associated with the ‘guest submitter’ account rather than the email address of the submitter.
I’ve checked wp-mail works, and have set it to use smtp with no change to this problem!
I’ve narrowed it down a little bit – in events-manager/em-emails.php it is skipping everything and going straight to
} elseif (!current_user_can('manage_options')) {
This makes sense because all users (including anonymous users) can submit an event, which immediately gets approved. Right now the code only sends admins an email at that point, rather than to the anonymous submitter.
I’ve modified the last section of em-emails.php to the following:
} elseif (!current_user_can('manage_options')) {
if ($EM_Event->is_published() && !$EM_Event->get_previous_status()) {
$subject = $EM_Event->output(get_option('dbem_event_published_email_subject'), 'raw');
$body = $EM_Event->output(get_option('dbem_event_approved_email_body'), $output_type);
$EM_Event->email_send($subject, $body, $EM_Event->get_contact()->user_email);
$admin_emails = explode(',', str_replace(' ', '', get_option('dbem_event_submitted_email_admin'))); //admin emails are in an array, single or multiple
if (empty($admin_emails))
return true;
$subject = $EM_Event->output(get_option('dbem_event_published_email_subject'), 'raw');
$body = $EM_Event->output(get_option('dbem_event_published_email_body'), $output_type);
$EM_Event->email_send($subject, $body, $admin_emails);
}
}
}
return $result;
}
add_filter('em_event_save', 'em_event_submission_emails', 10, 2);
-This only really suits the setup of this particular site but it seems to work. Can anyone see any glaring issues with this? Please let me know if so and if I don’t hear I’ll mark this as resolved.