java - how to access gmail mails using sinetfactory api. please provide an example -


Please provide an example how can I use Gmail email using the sinetfactory API

Just use the document, which is everything there is in the html folder of sinetfactory.

  Import com.jscape.inet.imap. *; Import com.jscape.inet.email *; Import com.jscape.inet.imapssl.ImapSsl; Import com.jscape.inet.mime *; Import java.io * *; Public class ImapSshExample {Fixed BufferedReader Reader = New BufferedReader (New InputStreamReader (System.in)) ;; Public Zero getMessages () ImapException, MimeException, IOException {ImapSsl imap = new ImapSsl ("imap.gmail.com", 993, "Username", "Password") throws; Imap.connect (); Int messageCount = imap.getMessageCount (); {EmailMessage msg = imap.getMessage (i) for (Int i = 1; I & lt; = messageCount; i ++); System.out.println ("- start message -"); System.out.println (new string (msg.getMessage ())); System.out.println ("- end message -"); System.out.print ("Enter QUIT to enter or leave for next message:"); String command = reader Readline (); If (command.equalsIgnoreCase ("quit")) {break; }} Imap.disconnect (); } Public static zero main (string [] args) {try {imapSshExample Example = New ImapSshExample (); Example.getMessages (); } Hold (exception e) {e.printStackTrace (); }}}  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -