Skip to Content Skip to Menu

suppress welcome emails for users created manually in the backend

  • kommid
  • kommid
  • OFFLINE
  • Posts: 74
  • Thanks: 12
  • Karma: 0
2 weeks 16 hours ago #344464 by kommid
Hi Joomlapolis Support,
we are using Community Builder 2.12.0 on Joomla 5.4.8.Our users can register themselves via the frontend, and in that case we do want Community Builder to send the normal confirmation/welcome emails.
However, we also regularly create users manually via:
Community Builder → User Management → New Use
For these manually created backend users, we do not want Community Builder to send any email at all, especially not the welcome email containing the username/password.So the desired behavior is:
  • Frontend self-registration → confirmation/welcome emails should be sent as usual
  • User created manually by an administrator in the CB backend → no email should be sent to the user
I understand that CB internally supports the
Code:
sendEmail
flag and that it can be set to
Code:
0
when creating users programmatically.
Is there a way to achieve the same behavior using CB Auto Actions, without modifying CB core files?
If so, which trigger/action combination should we use, and at which point would we need to set
Code:
sendEmail = 0
so that the welcome email is suppressed before it is sent?
If CB Auto Actions cannot intercept this early enough, what would be the recommended update-safe approach for achieving this?Thanks in advance for your help.Best regards
Markus

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50697
  • Thanks: 8691
  • Karma: 1475
2 weeks 10 hours ago - 2 weeks 10 hours ago #344470 by krileon
There's no parameter to toggle that off. I don't think CB Auto Actions will be able to intercept this either without interrupting the registration process itself. There isn't a trigger specific to those emails so you'd have to use the generic onBeforeSendEmailMSG and try to determine it's one of the registration emails then probably empty its subject and message parameters so that it causes the API to just skip sending.

The easiest solution is probably using the Import feature. With it you can force suppress all emails during import. You can also temporarily toggle off emails globally in CB > Configuration > Integrations, save the user, then toggle back on.


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.
Last edit: 2 weeks 10 hours ago by krileon.
The following user(s) said Thank You: kommid

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

  • kommid
  • kommid
  • OFFLINE
  • Posts: 74
  • Thanks: 12
  • Karma: 0
1 week 6 days ago #344477 by kommid
OK, this is unexpected. I'v got uesd to that there is always some way to accomplish anything in CB using one of the plugins 
Thank you, I'll use the import function then, It's a bunch of users everytime anyway.

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

Moderators: beatnantkrileon
Powered by Kunena Forum