This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to access Email account

 
Rajan Venkat
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to access my yahoo mail account from my program. I have used IMAP protocol for accessing the mail account. Here is my code


ERROR :

{java.assistive=ON, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, mail.imap.user=rajan_venkat27@yahoo.co.in, ibm.signalhandling.rs=false, sun.boot.library.path=C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\bin, java.vm.version=2.3, com.ibm.oti.configuration=scar, java.vm.vendor=IBM Corporation, java.vendor.url=http://www.ibm.com/, path.separator=;, java.vm.name=IBM J9 VM, user.country=US, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Documents and Settings\Administrator\workspace\LearningProj, java.runtime.version=pwi32dev-20060222a (SR1), java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20060222a (JIT enabled)
J9VM - 20060220_05389_lHdSMR
JIT - 20060220_2133_r8
GC - 20060214_AA, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, os.arch=x86, com.ibm.vm.bitmode=32, java.io.tmpdir=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\, line.separator=
, com.ibm.util.extralibs.properties=, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, java.awt.fonts=, os.name=Windows XP, sun.java2d.fontpath=, java.jcl.version=20060222a, sun.jnu.encoding=Cp1252, java.library.path=C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\bin;.;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\bin;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\K-Lite Codec Pack\QuickTime\QTSystem\;C:\CMVC\exe;C:\CMVC\exe\bin;, jxe.current.romimage.version=9, com.ibm.oti.vm.bootstrap.library.path=C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\bin, com.ibm.cpu.endian=little, java.specification.name=Java Platform API Specification, java.class.version=49.0, ibm.system.encoding=Cp1252, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, invokedviajava=, os.version=5.1 build 2600 Service Pack 2, com.ibm.oti.vm.library.version=23, user.home=C:\Documents and Settings\Administrator, user.timezone=, java.awt.printerjob=sun.awt.windows.WPrinterJob, mail.imap.host=209.191.92.114, file.encoding=Cp1252, java.specification.version=1.5, mail.debug=true, user.name=Administrator, java.class.path=C:\Documents and Settings\Administrator\workspace\LearningProj, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre, com.ibm.oti.jcl.build=20060210_1016, user.language=en, ibm.signalhandling.sigint=true, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20060222a (JIT enabled)
J9VM - 20060220_05389_lHdSMR
JIT - 20060220_2133_r8
GC - 20060214_AA, java.version=1.5.0, java.ext.dirs=C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ext, jxe.lowest.romimage.version=9, sun.boot.class.path=C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\vm.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\core.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\charsets.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\graphics.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\security.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmpkcs.jar;C:\Software\Eclipse\eclipseDe velopmentPackage\ibm_sdk50\jre\lib\ibmorb.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmcfw.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmorbapi.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmjcefw.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmjgssprovider.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmjsseprovider2.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50 \jre\lib\ibmjaaslm.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmjaasactivelm.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\ibmcertpathprovider.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\server.jar;C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\xml.jar, mail.imap.auth=true, java.vendor=IBM Corporation, file.separator=\, mail.imap.password=subbulakshmi, java.compiler=j9jit23, sun.io.unicode.encoding=UnicodeLittle, ibm.signalhandling.sigchain=true}
DEBUG: JavaMail version 1.3.1
DEBUG: java.io.FileNotFoundException: C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\javamail.providers (The system cannot find the file specified.)
DEBUG: URL jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/imap.jar!/META-INF/javamail.providers
DEBUG: successfully loaded resource: jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/imap.jar!/META-INF/javamail.providers
DEBUG: URL jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/pop3.jar!/META-INF/javamail.providers
DEBUG: successfully loaded resource: jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/pop3.jar!/META-INF/javamail.providers
DEBUG: URL jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/smtp.jar!/META-INF/javamail.providers
DEBUG: successfully loaded resource: jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/smtp.jar!/META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: URL jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/smtp.jar!/META-INF/javamail.address.map
DEBUG: successfully loaded resource: jar:file:/C:/Software/Eclipse/eclipseDevelopmentPackage/ibm_sdk50/jre/lib/ext/smtp.jar!/META-INF/javamail.address.map
DEBUG: successfully loaded file: C:\Software\Eclipse\eclipseDevelopmentPackage\ibm_sdk50\jre\lib\javamail.address.map
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
DEBUG: mail.imap.fetchsize: 16384
imap:
Failurejavax.mail.MessagingException: Operation timed out: connect:could be due to invalid address;
nested exception is:
java.net.SocketException: Operation timed out: connect:could be due to invalid address

Can anyone tell me where i had gone wrong.
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't believe yahoo supports IMAP for accessing your email. They do seem to support POP3 -- which should work if you just want to connect programatically. You will have to search yahoo, to get the host and configurations details on how to do it.

Henry
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's more, I think you can only use POP3 to access Yahoo Mail if you have a paid account. The free accounts don't support it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic