from flask_mail import Message

from applications.extensions.init_mail import mail


# send_mail(subject='title', recipients=['<EMAIL>'], content='body')
def send_mail(subject, recipients, content):
    try:
        message = Message(subject=subject, recipients=recipients, body=content)
        mail.send(message)
    except Exception as e:
        print('邮箱发送出错了')
        raise

from flask_mail import Message

from applications.extensions.init_mail import mail


# send_mail(subject='title', recipients=['<EMAIL>'], content='body')
def send_mail(subject, recipients, content):
    try:
        message = Message(subject=subject, recipients=recipients, body=content)
        mail.send(message)
    except Exception as e:
        print('邮箱发送出错了')
        raise

# send_mail(subject='title', recipients=['<EMAIL>'], content='body')