You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some digging I found out that apparently the outlook server is quite strict on what domain names it accepts. There currently is no way to specify this domain name in fastapi-mail. The package which is used for making the connetion to the SMTP server is aiosmtplib, which if not provided with a local hostname, uses the socket.getfqdn() as default. Unfortunately, in my case this raises the above mentioned error, since this function results in "mylaptopname.". This does not comply with the FQDN rules MS follows.
Therefore I have made a pull request, allowing to specify the local hostname. #204
The text was updated successfully, but these errors were encountered:
When using an MS Outlook account and trying to send message from my local machine, I get the following error:
After some digging I found out that apparently the outlook server is quite strict on what domain names it accepts. There currently is no way to specify this domain name in fastapi-mail. The package which is used for making the connetion to the SMTP server is aiosmtplib, which if not provided with a local hostname, uses the
socket.getfqdn()
as default. Unfortunately, in my case this raises the above mentioned error, since this function results in "mylaptopname.". This does not comply with the FQDN rules MS follows.Therefore I have made a pull request, allowing to specify the local hostname. #204
The text was updated successfully, but these errors were encountered: