Skip to Content Skip to Menu

how to send a message to all users?

15 years 1 month ago #110565 by carsten888
how to send a message to all users? was created by carsten888
I want to send a mailing through uddeim.
I guess I could make a query that inserts a new message for each user in the 'jos_uddeim' table, but maybe there is another solution?

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 1 month ago #110568 by slabbi
Replied by slabbi on topic Re:how to send a message to all users?
No, there isn't.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

15 years 1 month ago #110619 by carsten888
Replied by carsten888 on topic Re:how to send a message to all users?
:unsure:

thanks for the reply.

Post edited by: carsten888, at: 2009/09/09 07:56

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

15 years 1 month ago #110620 by carsten888
Replied by carsten888 on topic Re:how to send a message to all users?
em, so would that work if I made a query that adds the message for each of the users into table 'jos_uddeim' ?
No other table eneds work on?

Post edited by: carsten888, at: 2009/09/09 07:57

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 1 month ago #110623 by slabbi
Replied by slabbi on topic Re:how to send a message to all users?
Yes. There is an example in the FAQ that shows how to "send" a message.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

15 years 1 month ago #110631 by carsten888
Replied by carsten888 on topic Re:how to send a message to all users?
cant find it in these faqs:
www.joomlapolis.com/content/category/5/18/58/
any other faqs?

anyway, here is my code:
[code:1]$db->setQuery("SELECT id "
."FROM #__users "
);
$user_ids = $db->loadObjectList();
foreach($user_ids as $user_id_temp){
$db->setQuery( "INSERT INTO #__uddeim SET "
."fromid='62', "
."toid='".$user_id_temp->id."', "
."message='test', "
."datum='1235003771' "
);
$db->query();
}[/code:1]

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum