Establishing a connection |
To establish a connection to an IMAP server, create an Imap instance providing the IMAP server hostname, username and password as arguments to the constructor.
Example
import com.jscape.inet.imap.*;
Imap imap = new Imap("imap.myserver.com","jsmith","secret"); imap.connect();
|