Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Run folderlist.java with Gmail SSL POP3
How to run folderlist.java in javamail1_4_7.zip with Gmail using SSL POP3 protocol? I have a valid Gmail email account.
✍: FYIcenter.com
folderlist.java in javamail1_4_7.zip can be used to retrieve mail folder information from Gmail mail server using SSL POP3 protocol. Here is an execution session of folderlist.java:
fyicenter>cd \local\javamail-1.4.7\demo
local\javamail-1.4.7\demo>java -version
java version "1.8.0_45"
local\javamail-1.4.7\demo>javac -cp ..\mail.jar folderlist.java
local\javamail-1.4.7\demo>java -cp .;..\mail.jar folderlist
-D -L pop3s://john:password@pop.gmail.com *
DEBUG: setDebug: JavaMail version 1.4.7
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3
.POP3SSLStore,Oracle]
DEBUG POP3: mail.pop3s.rsetbeforequit: false
DEBUG POP3: mail.pop3s.disabletop: false
DEBUG POP3: mail.pop3s.forgettopheaders: false
DEBUG POP3: mail.pop3s.cachewriteto: false
DEBUG POP3: mail.pop3s.filecache.enable: false
DEBUG POP3: mail.pop3s.keepmessagecontent: false
DEBUG POP3: mail.pop3s.starttls.enable: false
DEBUG POP3: mail.pop3s.starttls.required: false
DEBUG POP3: mail.pop3s.apop.enable: false
DEBUG POP3: mail.pop3s.disablecapa: false
DEBUG POP3: connecting to host "pop.gmail.com", port 995, isSSL true
+OK Gpop ready for requests from 71.174.32.174 z126mb196790911ywf
CAPA
+OK Capability list follows
USER
RESP-CODES
EXPIRE 0
LOGIN-DELAY 300
TOP
UIDL
X-GOOGLE-RICO
SASL PLAIN XOAUTH2 OAUTHBEARER
.
DEBUG POP3: authentication command trace suppressed
DEBUG POP3: authentication command failed
QUIT
+OK Bye z126mb196790911ywf
Exception in thread "main" javax.mail.AuthenticationFailedException: [AUTH] User
name and password not accepted.
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:207)
at javax.mail.Service.connect(Service.java:295)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at folderlist.main(folderlist.java:107)
The output shows that:
⇒ msgsend Demo Program in JavaMail 1.4.7
⇐ Run folderlist.java with Gmail SSL IMAP
2016-01-25, ∼3217🔥, 0💬
Popular Posts:
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
How to compare performances of various XML parsers with the jaxp\SourceValidator.jav aprovided in th...
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...