Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Email POP3 « Network « Ruby
Ruby
Network
Email POP3
1.
connect to a POP3 server to see if there are any messages available for download
2.
Downloading all the mails is as simple as using the pop method for each Net::POPMail object:
3.
To delete a mail
4.
deletes messages if their subject contains the word "medicines":
5.
Sending Mail with SMTP
6.
e-mail provider
7.
specify port number
8.
Send the mail directly to that user