sabuhish / fastapi-mail

Fastapi mail system sending mails(individual, bulk) attachments(individual, bulk)
https://sabuhish.github.io/fastapi-mail/
MIT License
698 stars 81 forks source link

How to set a timeout for send_message ? #156

Closed DaveMDS closed 1 year ago

DaveMDS commented 1 year ago

Hi, is it possible to set a timeout for the FastMail.send_message function? I didn't find nothing about timeout in the docs

Thanks in advance

sabuhish commented 1 year ago

Hi, currently, this option is not supported. the default timeout is applied from the aiosmtplib library

https://github.com/cole/aiosmtplib/blob/main/aiosmtplib/smtp.py#L46

Thanks for mentioning this, we will work on it.

sabuhish commented 1 year ago

it is now available on v1.2.2, thanks, closing the issue

DaveMDS commented 1 year ago

Thanks !