Movatterモバイル変換


[0]ホーム

URL:


Up one LevelPython Library ReferenceContentsModule IndexIndex

18.14.1 SMTPServer Objects

class SMTPServer(localaddr, remoteaddr)
Create a newSMTPServer object, which binds to local addresslocaladdr. It will treatremoteaddr as an upstream SMTPrelayer. It inherits fromasyncore.dispatcher, and so willinsert itself intoasyncore's event loop on instantiation.

process_message(peer, mailfrom, rcpttos, data)
RaiseNotImplementedError exception. Override this insubclasses to do something useful with this message. Whatever waspassed in the constructor asremoteaddr will be available as the_remoteaddr attribute.peer is the remote host's address,mailfrom is the envelope originator,rcpttos are theenvelope recipients anddata is a string containing the contentsof the e-mail (which should be inRFC 2822 format).


Up one LevelPython Library ReferenceContentsModule IndexIndex

Release 2.5.2, documentation updated on 21st February, 2008.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2025 Movatter.jp