Python 從 Gmail 帳號發送郵件
以下文章會介紹用 Python 使用 smtplib 連接到 Gmail 的 SMTP 伺服器, 並發出電子郵件的方法。 但在開始前, Google 帳號是使用雙重認證密碼, 如果直接在 Python code 內輸入 Google 密碼, 會回傳以下報錯: smtplib.SMTPAuthenticationError: (534, b’5.7.9 Application-specific password required. Learn more at\n5.7.9 …