On this page
smtplib.SMTPAuthenticationError
Prev: smtplib.SMTP_SSL | Up: smtplib | Next: smtplib.SMTPConnectError
Rel: smtplib.quoteaddr, smtplib.quotedata, smtplib.SMTP, smtplib.SMTP_SSL
Ref: docs.python.org โ smtplib.SMTPAuthenticationError
Tags: #public #python3 #stdlib #smtplib
Import
import smtplib
from smtplib import SMTPAuthenticationError
Signature & Overview
smtplib.SMTPAuthenticationError(code, msg)
Authentication error.
Methods & Attributes
SMTPAuthenticationError.add_note(self, note, /)โ Add a note to the exceptionSMTPAuthenticationError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import smtplib
assert issubclass(smtplib.SMTPAuthenticationError, smtplib.SMTPResponseException)
Gotchas
- Check for app-specific passwords / OAuth2 requirements on modern providers.
REPL Inspect
from smtplib import SMTPAuthenticationError
help(SMTPAuthenticationError)
Linked from
Related notes
- tuts/python3/stdlib_module/smtplib/quoteaddr Linked here; links to this page; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/quotedata Linked here; links to this page; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTP Linked here; links to this page; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTP_SSL Linked here; links to this page; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPConnectError Linked here; links to this page; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPDataError shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPException shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPHeloError shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPNotSupportedError shared tags: #smtplib, #stdlib