We have a feedback form on our website, which is mostly used for support questions. I want questions posted there to become new topics on our forum, powered by Discourse.
I am trying to implement the following sequence of actions:
- Create a new user via API, based on the name and e-mail, submitted via the form.
- Create a new topic, authored by this user.
- Send this user an e-mail with the link to this topic, and also a request to create a password.
Now, I have found four e-mail templates on Discourse, that could be used in step 3 - “Account created”, “Login via link”, “Forgot Password” and “Set Password”. In the API documentation, I only found a call that sends the “Forgot Password” message, but this doesn’t seem to be the best candidate for my case.
a) Under what circumstances other three messages (“Account created”, “Login via link”, and “Set Password”) are sent?
b) How can I send them via API?