Is it possible to send an automated mail whenever sign a user up action is trigerred and user is signed up successfully.
I have a reusable element for signups. but there are also cases where I allow users to signup in other pages and I do not want to have send an email action everytime.
The way to always do something when something changes in the database (like sending an automated e-mail when a new user being added) is to use Backend Workflows and Database trigger events.
What you do is basically send an e-mail when the âUser before change doesnât have an accountâ:
An added benefit of this is that all the things you do on the backend will not force your new user to wait until the tasks finishes - great if you donât only send an e-mail but also set up a lot of other database things or call APIs etc etc.
I would also suggest, to save on WUs, to set a state inside their reusable element when they click the button on the page they are on. Then based on the state, you can send an email or not. Just as an alternative to having it check that condition each time the User changes something in their User dataType record. Hope that makes sense.