tailieunhanh - HandBooks Professional Java-C-Scrip-SQL part 256
Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 256', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Closes the POP3 session. Returns an array of Net POPMail objects. acct passwd acct passwd pop . Starts a POP3 session. If a block is specified the session is terminated when the block exits. Net APOP APOP connection class The Net APOP class has the same interface as Net POP3. They differ only in their method of authentication. Required Library require net pop Inherited Class Net POP3 Net POPMail POP mail class The Net POPMail class is used by classes Net POP3 and Net APOP to return individual message objects. Required Library require net pop Instance Methods m .all dest dest dest Retrieves the contents of mail messages. If dest is specified each message is appended to it using the method. If a block is specified it s passed the contents of each message as a string and run once for each line in the message. Deletes the message. Returns true if the message has been deleted. dest Returns the message header. Returns the message size in bytes. lineno dest Returns the message header and lineno number of lines of the body. Net SMTP SMTP connection class Net SMTP is a class for Simple Mail Transfer Protocol SMTP client-side connection. SMTP is a protocol to talk to Mail Transfer Agent MTA . Required Library require net smtp Example require net smtp user you@ from matz@ server localhost smtp Net SMTP new server BODY from user From matz@ Subject this is a test mail. this is body BODY Class Methods Net SMTP new 7 iJr localhost port 25 Creates a new Net SMTP object. Net SMTP start 7 iJr localhost port 25 . Net SMTP start ad Jr localhost port 25 . smtp . Equivalent to Net SMTP new JJr port .start . . A newly created Net SMTP object is passed to the block if specified. The SMTP session is terminated when the block exits. Instance Methods s. .
đang nạp các trang xem trước