Skip to Content Skip to Menu

email while creating a new group

  • Toulouzing
  • Toulouzing
  • ONLINE
  • Posts: 138
  • Thanks: 17
  • Karma: 2
21 hours 16 minutes ago #343288 by Toulouzing
email while creating a new group was created by Toulouzing
Hello !
I am in the phase of setting Groupjive in my site. 

I am wondering if it is possible to send an email to all registered users while a new group is created. Currently, It is an activity and a notification. Is there a setting for this or should be something doable with autoaction ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50149
  • Thanks: 8584
  • Karma: 1469
18 hours 25 minutes ago #343292 by krileon
Replied by krileon on topic email while creating a new group
CB GroupJive doesn't have that functionality so no it's not doable without implementing it yourself. It however can be implemented using CB Auto Actions. The below should work.

Global
Triggers: gj_onAfterCreateGroup
Type: Email
User: Automatic
Access: Everybody
Action
To: query
To Query:
Code:
SELECT `email` FROM `#__users` WHERE `block` = 0
Subject: EMAIL_SUBJECT_HERE
Body: EMAIL_MESSAGE_HERE

That should email every user when a group is created. I would recommend caution with this. It'd be easy to spam users with too many emails by doing this and could result in your email domain being blacklisted if too many people report you as spam.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • Toulouzing
  • Toulouzing
  • ONLINE
  • Posts: 138
  • Thanks: 17
  • Karma: 2
7 hours 16 minutes ago - 6 hours 20 minutes ago #343302 by Toulouzing
Replied by Toulouzing on topic email while creating a new group
Thank you, I had a first trial sounding good ! Thank you also for the recommandation about email flooding, it's OK in my case because there will be only few events and a short list of users all registered and aware.

I have 2 questions ( i did my best to read documentation and help bubbles  but it is not comprehensive enough for me without your help)

How to use conditions and is it necessary to choose one ?

I do not find the way to use substitutions for the email ( such as username,groupname....)- is there a list somewhere and are they available or must do something to make it available ?
EDIT: It seems to be the use of references (variable 1, 2...) in the parameters of the related autoaction. But i still don't know how to use it 
Last edit: 6 hours 20 minutes ago by Toulouzing.

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

Moderators: beatnantkrileon
Powered by Kunena Forum