java - Connect to hotmail with javamail? -


I wonder if it is possible to connect to Hotmail with JavaMail?

I tried it but it does not work, the connection has been denied ...

  string host = "pop3.live.com"; String user name = "laqetqetqet@hotmail.com"; String password = "rqetqetq"; Session session; Store store; String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory"; Properties pop3Props = new property (); Pop3Props.setProperty ("mail.pop3.socketFactory.class", SSL_FACTORY); Pop3Props.setProperty ("mail.pop3.socketFactory.fallback", "wrong"); Pop3Props.setProperty ("mail.pop3.port", "995"); Pop3Props.setProperty ("mail.pop3.socketFactory.port", "995"); URL name url = New URL name ("POP3", host, 995, "", user name, password); Session = session. Get instant (pop3 props, empty); Store = new POP3SSLStore (session, url); Store.connect ();  

Has anyone been able to do this already?

You can try it

Mr. Poststone, local pop clients such as Microsoft There is an email gateway from Outlook, Mozilla's mail clients, such as Web and other hot mail services like Yahoo and Hotmail. It is designed for design so that more web mail services for it.


Comments