Closed friki67 closed 1 month ago
Hi @friki67,
It appears that the error originates from the smtplib
library, and since you're using Gmail (smtp.gmail.com
), there are additional steps needed to enable email functionality with Python.
Gmail requires you to configure your account for apps like this. Specifically, you'll need to generate a 16-digit app password, as Google restricts access from less secure apps. You can follow this short tutorial here for guidance.
"A 16-digit passcode is generated in your Google account and allows less secure apps or devices that don’t support 2-step verification to sign in to your Gmail account."
Please ensure your Gmail setup is correct. If the issue persists, feel free to ask for further assistance!
Hello. Yes, I did the app password thing in Google. I did it for other apps and usually it worked. :/. I think I'm failing in some other parameter
Hi,
I can confirm that this is indeed a bug. It appears Gmail requires a continuous SSL connection, which the current mail backend doesn't support yet.
If you're familiar with Python, you can modify the code yourself. In mail.py
, you'll need to update the def setup_mailserver(self)
function to something like this:
def setup_mailserver(self) -> smtplib.SMTP_SSL:
"""Setup the mail server now with SSL.
Returns:
smtplib.SMTP_SSL: The mail server.
"""
server = smtplib.SMTP_SSL(self.smtp_server, self.smtp_port)
server.login(self.sender_email, self.password)
return server
Sorry for the inconvenience. We'll include this option in the next version, and thanks to your report, we are now aware of the issue!
Hello! This fixed the problem. Thank you very much!
Docker installation. Just changed config.yaml and tried to use the async mode. In simple mode is working ok.
What am I doing wrong?
config.yaml
log