Jump to content

fha9302

Members
  • Posts

    3
  • Joined

  • Last visited

Reputation

0 Neutral

About fha9302

Personal Information

  • Location
    Depok, Indonesia
  1. I have a problem with code. It's supposed to be an email client with options to read messages and send them. The problem is that inbox not show it. I assume that the problems in the code. I use xampp for server, and i've tried use thunderbird for testing, but server is good. Yeah, that's success but in my coding java that's not success. Once i run the application for i've chosen pop3 follow by email, password, smtp server, smtp server port And then click login,it gave me this error... javax.mail.AuthenticationFailedException: Username or password is invalid or incorrect. at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:213) at javax.mail.Service.connect(Service.java:366) at javax.mail.Service.connect(Service.java:246) at emailclientgamal.EmailClientGamal.referhEmail(EmailClientGamal.java:462) at emailclientgamal.EmailClientGamal.connect(EmailClientGamal.java:449) at emailclientgamal.EmailClientGamal.main(EmailClientGamal.java:551)
  2. I've tried use mercury in xampp to use port 110 for pop3, and also setting the mercury with local user localhost But when i try in my java application, username and password are not suitable, actually that's contents are same all. - - - Updated - - - Oke i will try it
  3. unable to connect server private void referhEmail(){ try { Properties props = new Properties(); props.setProperty("mail.store.protocol", "pop3"); props.setProperty("mail.pop3.port", "110"); props.setProperty("mail.pop3.host", "localhost"); Session session = Session.getInstance(props); final Store store = session.getStore("pop3"); store.connect("localhost","singa@localhost", "333"); i've tried in other port, but still can't
×
×
  • Create New...