On this page
  1. smtplib.SMTPResponseException
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

smtplib.SMTPResponseException

Prev: smtplib.SMTPRecipientsRefused | Up: smtplib | Next: smtplib.SMTPSenderRefused
Rel: smtplib.quoteaddr, smtplib.quotedata, smtplib.SMTP, smtplib.SMTP_SSL
Ref: docs.python.org โ€” smtplib.SMTPResponseException
Tags: #public #python3 #stdlib #smtplib


Import

import smtplib
from smtplib import SMTPResponseException

Signature & Overview

smtplib.SMTPResponseException(code, msg)

Base class for all exceptions that include an SMTP error code.

Methods & Attributes

Usage

import smtplib

exc = smtplib.SMTPResponseException(550, b'User unknown')
assert exc.smtp_code == 550

Gotchas

REPL Inspect

from smtplib import SMTPResponseException
help(SMTPResponseException)

Linked from

Related notes