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?
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.