mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
12 lines
352 B
Python
12 lines
352 B
Python
|
from flask import *
|
||
|
from flask_mail import Message
|
||
|
from app import mail
|
||
|
from app.tasks import celery
|
||
|
|
||
|
@celery.task()
|
||
|
def sendVerifyEmail(newEmail, token):
|
||
|
msg = Message("Verify email address", recipients=[newEmail])
|
||
|
msg.body = "This is a verification email!"
|
||
|
msg.html = render_template("emails/verify.html", token=token)
|
||
|
mail.send(msg)
|