Skip to Content Skip to Menu

How to send an email to a user that I add a new access level [CB Auto Acion]

8 years 3 weeks ago #289663 by eduardomontes
I would like to use CB Auto Action to send an email to a user that I add a new access level to give him additional information about it.
Is it possible to do it using CB Auto Action?
How can I do that?
Which trigger I should use?
Is there other way to do it?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago - 8 years 3 weeks ago #289674 by krileon
Yes, that's doable. You'd act on the onAfterUpdateUser trigger, which is fired when a user is updated from backend. You'd then just use an Email action or whatever action you want really.


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: 8 years 3 weeks ago by krileon.

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

8 years 3 weeks ago #289675 by eduardomontes
Hi, Kyle.
Thanks for your quick reply.

Which field should I use to check the new access level?
How can I control if I have already send the e-mail ? Should I create a new field to control it like the video tutorial?
Could you give more details how can I do this?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289676 by krileon

Which field should I use to check the new access level?

That trigger is fired after your new usergroup has been added so you can just set the Access parameter of your action to it and should work fine.

How can I control if I have already send the e-mail ? Should I create a new field to control it like the video tutorial?

That's basically the only way to do it. You have to have some means to keep track of if they've been emailed or not. Maybe subscribe them to an AcyMailing newsletter that's configured to send to each email address only once otherwise you'll need to use a field to keep track of if they've been emailed already or not.

Could you give more details how can I do this?

Below should get you started.

Global
Triggers: onAfterUpdateUser
Type: Email
User: Automatic
Access: YOUR_USERGROUP_HERE
Action
To:
Code:
[email]
Subject: You've been given XYZ access!
Body: You now have access to XYZ!


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.

Moderators: beatnantkrileon
Powered by Kunena Forum