On this page
  1. smtplib.quoteaddr
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

smtplib.quoteaddr

Up: smtplib | Next: smtplib.quotedata
Rel: smtplib.quotedata, smtplib.SMTP, smtplib.SMTP_SSL, smtplib.SMTPAuthenticationError
Ref: docs.python.org — smtplib.quoteaddr
Tags: #public #python3 #stdlib #smtplib


Import

import smtplib
from smtplib import quoteaddr

Signature & Overview

smtplib.quoteaddr(addrstring)

Quote a subset of the email addresses defined by RFC 821.

Usage

import smtplib

assert smtplib.quoteaddr('ada@example.com') == '<ada@example.com>'

Gotchas

REPL Inspect

from smtplib import quoteaddr
help(quoteaddr)

Linked from

Related notes