SMTP methods and classes. Typical usage: import "interface.pop3"; pop = interface.pop3|connect("your.smtp.server",110); pop|authorize("username","password"); ("You have "+pop|messagecount|str+" messages!")|print; pop|getmessage(1)|print; pop|close;
interface.pop3.POPException
: The SMTP server is busy right now.interface.pop3.POPUnknownError
: The SMTP server is busy right now.interface.pop3.pop3_connection
: interface.pop3.response
: conn
: The SMTP connection that we work with, which handles all the socket logic. authorize(username, password)
: Authenticates you to the POP server.
Supports basic POP3 authentication and APOP authentication. If the
server supports APOP, it is used - otherwise, normal authentication is
performed. close()
: Closes the connection with the POP server, which also includes sending "QUIT". connect(host, port)
: Connects to an smtp server at the given host and port, and identifies with the domain given
by +helo+.
host: the POP3 server to connect to.
port: the port the server is running on.
Typical Usage:
pop = interface.pop3|connect("your.smtp.server",110);
pop|authorize("username","password");
("You have "+pop|messagecount|str+" messages!")|print;
pop|getmessage(1)|print;
pop|close;
getmessage(id)
: Returns the message at index +id+. messagecount()
: Returns the number of messages on the server.