Skip to content

Best way to trigger email when create custome function user registration #480

Answered by jwag956
dvrg asked this question in Q&A
Discussion options

You must be logged in to vote

You don't need to subclass MailUtil - I presume you have already configured an email program - such as Flask-Mail - and that is working. Where you want to send an email - just call the appropriate flask_mail methods - e.g. send_mail. You can look at the source for flask_security mail_util.py to see the 5 or so lines of code necessary.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dvrg
Comment options

Answer selected by dvrg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants