Name

SMTP

Synopsis

class SMTP([host,port=25])

Returns an instance s of class SMTP. When host (and optionally port) is given, implicitly calls s .connect( host,port ).

Instance s supplies many methods, of which the most frequently used are the following.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.