Email stage
2 min
The email stage can be used for email verification, and the background worker will send an email using the specified connection details.
If an email cannot be delivered, the delivery is automatically retried periodically. The default behavior is to send the email to the currently pending user, but this can be overridden by setting the email in the plan's context to another email address, see below:
request.context["flow_plan"].context["email"] = "[email protected]"
# Or get it from a prompt
# request.context["flow_plan"].context["email"] = request.context["prompt_data"]["email"]
# Or another user attribute
# request.context["flow_plan"].context["email"] = request.context["pending_user"].attributes.get("otherEmail")
return TrueCustom email templates can also be used, to leverage your own design or layout.
By placing templates in the custom-templates folder and selecting the template when creating/editing an email stage. If the template is not visible, the worker logs should be checked.
