15 lines
399 B
Python
15 lines
399 B
Python
from flask import Flask
|
|
from app.extensions import mail
|
|
from app.utils.mail import send_report_email, get_report_data
|
|
from app.config import settings
|
|
|
|
app = Flask(__name__)
|
|
app.config.from_object(settings)
|
|
|
|
mail.init_app(app)
|
|
|
|
with app.app_context():
|
|
report_data = get_report_data()
|
|
recipients = ["vdagbue@gmail.com"]
|
|
result = send_report_email(report_data, recipients)
|
|
print(result) |