On this page
smtplib.SMTPNotSupportedError
Prev: smtplib.SMTPHeloError | Up: smtplib | Next: smtplib.SMTPRecipientsRefused
Rel: smtplib.quoteaddr, smtplib.quotedata, smtplib.SMTP, smtplib.SMTP_SSL
Ref: docs.python.org โ smtplib.SMTPNotSupportedError
Tags: #public #python3 #stdlib #smtplib
Import
import smtplib
from smtplib import SMTPNotSupportedError
Signature & Overview
smtplib.SMTPNotSupportedError(...)
The command or option is not supported by the SMTP server.
Methods & Attributes
SMTPNotSupportedError.add_note(self, note, /)โ Add a note to the exceptionSMTPNotSupportedError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import smtplib
assert issubclass(smtplib.SMTPNotSupportedError, smtplib.SMTPException)
Gotchas
- Raised when calling
starttls()orlogin()on a server that doesn't advertise that extension.
REPL Inspect
from smtplib import SMTPNotSupportedError
help(SMTPNotSupportedError)
Linked from
Related notes
- tuts/python3/stdlib_module/smtplib/SMTPHeloError Linked here; links to this page; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPRecipientsRefused 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/quoteaddr Linked here; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/quotedata Linked here; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTP Linked here; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTP_SSL Linked here; shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPAuthenticationError shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPConnectError shared tags: #smtplib, #stdlib
- tuts/python3/stdlib_module/smtplib/SMTPDataError shared tags: #smtplib, #stdlib