Send email with SMTP and Gmail address

Hello ! Thanks for your quick answer

Unfortunately it doesn’t work. I’ve tried just about everything I can find on the forums. The python packages are well installed elsewhere. And I don’t have two-factor authentication enabled. I also followed the recommendations of Google