Use AsyncSmtpTransport.from_url
to configure email?
#5472
Labels
Milestone
AsyncSmtpTransport.from_url
to configure email?
#5472
This would be much simpler to handle, similar to the database connection which we also switched to url.
https://docs.rs/lettre/0.11.14/lettre/transport/smtp/struct.AsyncSmtpTransport.html#method.from_url
At the same time, it would make sense to enable the
pool
feature for connection pool, and store the email transport inOnceLock
instead of building it from scratch every time.The text was updated successfully, but these errors were encountered: