Home | Trees | Index | Help |
|
---|
Package twisted :: Package protocols :: Module smtp |
|
Classes | |
---|---|
Address |
Parse and hold an RFC 2821 address. |
ESMTP |
|
ESMTPClient |
|
IMessage |
Interface definition for messages that can be sent via SMTP. |
IMessageDelivery |
|
IMessageDeliveryFactory |
An alternate interface to implement for handling message delivery. |
SMTP |
SMTP server-side protocol. |
SMTPClient |
SMTP client for sending emails. |
SMTPFactory |
Factory for SMTP. |
SMTPSender |
Utility class for sending emails easily - use with SMTPSenderFactory. |
SMTPSenderFactory |
Utility factory for sending emails easily. |
User |
Hold information about and SMTP message recipient, including information on where the message came from |
xtextStreamReader |
|
xtextStreamWriter |
Exceptions | |
---|---|
AddressError |
Parse error in address |
SMTPAddressError |
|
SMTPBadRcpt |
|
SMTPBadSender |
|
SMTPClientError |
|
SMTPConnectError |
|
SMTPDeliveryError |
|
SMTPError |
|
SMTPProtocolError |
|
SMTPServerError |
Function Summary | |
---|---|
idGenerator()
| |
Return a globally unique random string in RFC 2822 Message-ID format | |
Turn an email address, possibly with realname part etc, into a form suitable for and SMTP envelope. | |
Format an RFC-2822 compliant date string. | |
Deferred |
Send an email, optionally with attachments. |
Deferred
|
Send an email |
xtext_codec(name)
| |
xtext_decode(s)
| |
xtext_encode(s)
|
Variable Summary | |
---|---|
str |
atom = "[-A-Za-z0-9!\\#$%&'*+/=?^_`{|}~]"
|
str |
AUTH = 'AUTH'
|
str |
COMMAND = 'COMMAND'
|
str |
DATA = 'DATA'
|
dict |
SUCCESS = {256: None, 257: None, 258: None, 259: None, 2...
|
Function Details |
---|
messageid(uniq=None, N=<method-wrapper object at 0x846c8b4>)Return a globally unique random string in RFC 2822 Message-ID format <datetime.pid.random@host.dom.ain> Optional uniq string will be added to strenghten uniqueness if given. |
quoteaddr(addr)Turn an email address, possibly with realname part etc, into a form suitable for and SMTP envelope. |
rfc822date(timeinfo=None, local=1)Format an RFC-2822 compliant date string.
|
sendEmail(smtphost, fromEmail, toEmail, content, headers=None, attachments=None, multipartbody='mixed')Send an email, optionally with attachments.
|
sendmail(smtphost, from_addr, to_addrs, msg)Send an email This interface is intended to be a direct replacement for smtplib.SMTP.sendmail() (with the obvious change that you specify the smtphost as well). Also, ESMTP options are not accepted, as we don't do ESMTP yet. I reserve the right to implement the ESMTP options differently.
|
Variable Details |
---|
atom
|
AUTH
|
COMMAND
|
DATA
|
SUCCESS
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:18 2004 | http://epydoc.sf.net |