marktennyson / flask-mailing

Flask-Mailing is the ultimate solution for sending emails asynchronously in Flask applications. With its extensive features such as support for multiple email providers, file attachments, customizable templates, and encryption, Flask-Mailing makes email communication effortless and efficient.
https://marktennyson.github.io/flask-mailing/
MIT License
33 stars 10 forks source link

sync possible ? #21

Closed sergiokessler closed 2 years ago

sergiokessler commented 3 years ago

is there any way to NOT use async ?

whitout async I get:

RuntimeWarning: coroutine 'Mail.send_message' was never awaited mailer.send_message(msg)

using async is fine, no errors, the mail goes trough, but everything else in my app is sync, and I don't want to fall in "what color is your function ?"

marktennyson commented 2 years ago

Currently we don't have any implementation to support the synchronous view functions. You can start using flask-mailman.