Team,
I just noticed that when enabling the Site notification, Event Manager Notification seems to be broken. When enabled, the From field of the site message (inside Elgg Inbox) is sent as: From: "messages/compose?send_to=2448" instead of the actual user/owner. The email is sent correctly though... Anyone who can shed some light on this please?
I digged up the event.php code as:
// notify the owner of the event
$owner_subject = elgg_echo('event_manager:event:registration:notification:owner:subject');
$owner_message = elgg_echo('event_manager:event:registration:notification:owner:text:' . $type, array(
$this->getOwnerEntity()->name,
$to_entity->name,
$event_title_link));
$owner_message .= $registrationLink;
notify_user($this->getOwnerGUID(), $this->getGUID(), $owner_subject, $owner_message);
and somwhere on the From field:
if ($to_entity instanceof ElggUser) {
// use notification system for real users
notify_user($to, $this->getGUID(), $user_subject, $user_message);
} else {
// send e-mail for non users
$to_email = $to_entity->name . "<" . $to_entity->email . ">";
$site = elgg_get_site_entity($this->site_guid);
if ($site->email){
if ($site->name) {
$site_from = $site->name . " <" . $site->email . ">";
} else {
$site_from = $site->email;
}
} else {
// no site email, so make one up
if ($site->name) {
$site_from = $site->name . " <noreply@" . get_site_domain($site->getGUID()) . ">";
} else {
$site_from = "noreply@" . get_site_domain($site->getGUID());
}
}
elgg_send_email($site_from, $to_email, $user_subject, $user_message);
}
}
not sure what's wrong....
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- iionly@iionly

iionly - 0 likes
- bryan@nyaki

bryan - 0 likes
- bryan@nyaki

bryan - 0 likes

You must log in to post replies.I can't reproduce. It works for me on Elgg 1.8.19 with event manager plugin version 2.7.1. I also don't see any possible error in the code. Which version of Elgg and which version of the event manager plugin are you using?
thanks iionly... strange as I just tested a fresh install elgg 1.8.19 site and enabled both Email and Site notification for event manager 2.7.1. The event manager notification ends up like: