Welcome, Guest
Username: Password: Remember me
EventList 1.0.2 for Joomla 1.6 - 2.5
  • Page:
  • 1

TOPIC: Additional receiver email-workaround doesn´t work

Additional receiver email-workaround doesn´t work 6 years 9 months ago #6897

  • jose45
  • jose45's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Karma: 1
  • Thank you received: 6
hi,
has anybody an idea, why the additional mails doesn´t become used.
I just get the mails to the system-email and one notification for the user.
But I would like to get one, two Mails too to the categorie or group-members.

I added the mailer-PlugIn like that, in public function plgEventlistMailer on about line 125:
} else {
	
			// ------------ get categorie of events for spec. email receivers ---------------------------------------------- new -----
			if(is_numeric(JRequest::getVar('id'))) 					{	// 	
			
			// ---- workaround for spec. groupmembers
				$eventid =  JRequest::getVar('id'); 	// ggf.: $eventid = explode(':', JRequest::getVar('id'));    			   
			$query	= $db->getQuery(true);						
			$query->clear();
			$query->select('id, catsid');
			$query->from('#__eventlist_events');
			$query->where('id = '.$eventid);
		
			$db->setQuery($query);	
			if (!$evecat = $db->loadObject()) 				{
				if ($db->getErrorNum()) {
					JError::raiseWarning('0', $db->getErrorMsg());
										} return false;	} else {  
			// add spec. ... later switch
			if($evecat->catsid == 3) { $cat_mails[] = "mail@domain.de"; 	}  			
			if($evecat->catsid == 9) { $cat_mails[] = "mail2@domain.de"; $cat_mails[] = "mail3@domain.de"; 	} 		
															}
																	}
				
			$additional_mails = explode( ',', trim($this->params->get('receivers'))); 
isset($cat_mails) ? $this->_receivers = array_merge($cat_mails, $additional_mails) : $this->_receivers = $additional_mails;
		// ------------ end get categorie of events for spec. email receivers --------------------------------------------- new -----
		}
		print_r($this->_receivers); echo "<br>";	
is there any J!- or EL-filter, that hacks other eMails out?
regards, jose

Please Log in or Create an account to join the conversation.

Last edit: by jose45.
  • Page:
  • 1
Time to create page: 0.174 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......