just to confirm, are you the author or admin ?
Finally I’m both the admin and the author and responsible person for the event.
Have you tried using a different email address for one of those?
I havn’t tried adding a second person to check your suggestion.
So far I’ve used the following in my functions.php
// Send mails when a booking happened
add_action('em_booking_add', function($EM_Event) {
global $EM_Booking;
$msg = "New booking\n" .
"'" . $EM_Event->event_name . "' at " .
$EM_Event->event_start_date .
"\n\nDETAILS:\n" .
$_REQUEST['user_name'] . "\n".
$_REQUEST['user_email'] . "\n".
$_REQUEST['dbem_phone'] . "\n\n".
"User comment:\n'" .
$EM_Booking->booking_comment . "'\n";
$msg = wordwrap($msg, 70);
// Send mail
mail('[email protected]', 'New booking', $msg);
});
Not elegant but working. Instead of using the $_REQUEST object to retrieve the information, I’ve also tried to use the $EM_BOOKING object, but at the time the “em_booking_add” action gets fired, the $EM_BOOKING object doesn’t contain all data.
Cheers and thanks for the support
Daniel
-
This reply was modified 9 years, 2 months ago by
kirschdaniel. Reason: Format the code