Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Auto action usecase

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 401
  • Thanks: 37
  • Karma: 3
  • Add-ons
2 weeks 19 hours ago - 2 weeks 18 hours ago #339900 by liaskas
Auto action usecase was created by liaskas
Hello and best wishes for the new year.

I need to set a permanent cookie after user registration for some reason. This is done, the cookie is being created fine.

Now we need to check (also after user registration) if the cookie exists and if it does to send an e-mail to a specific email account, that will inform that a user that already has the cookie on his device registered again.

So we need an auto action that....

will be triggered after user registration, will check (php) if the cookie exists and if it exists, will send the email that has to include the registered user username.

Is it possible?
What auto action will that be to combine code to check for the cookie and mail to send the e-mail?

Thank you in advance.
Last edit: 2 weeks 18 hours ago by liaskas.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48700
  • Thanks: 8317
  • Karma: 1447
2 weeks 9 hours ago #339901 by krileon
Replied by krileon on topic Auto action usecase
Yes, that's possible. Checking the cookie and the email should just be a single auto action. You'd check the cookie in a Condition and the email would just be an Email action. You'd use the onAfterUserRegistration trigger. Example as follows.

Global
Trigger: onAfterUserRegistration
Type: Email
User: Automatic
Access: Everybody
Conditions
Field: Custom > Value
Custom Value: [cookie_COOKIE_NAME_HERE]
Operator: Not Empty
Action
To: YOUR_EMAIL_ADDRESS_HERE
Subject: Cookie Registration Detected!
Body:
Code:
Registered Username: [username]

Replace COOKIE_NAME_HERE with the name of your cookie. Replace YOUR_EMAIL_ADDRESS_HERE with the email address you want to send this to. It should send the username of the newly registered user.


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.
The following user(s) said Thank You: liaskas

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

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 401
  • Thanks: 37
  • Karma: 3
  • Add-ons
2 weeks 9 hours ago #339902 by liaskas
Replied by liaskas on topic Auto action usecase
Thank you Krileon.
I will give it a try and will be back if any issues.
Best wishes for the new year!
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum