Results 1 to 10 of 10
  1. #1
    lunarstyle is offline Member
    Join Date
    May 2007
    Posts
    4
    Rep Power
    0

    Arrow a problem about java mail client program

    I have downloaded java mail client program class files forım the page at this link Java Tips - How to create an e-mail client in Java . And I downloaded Javamail api. I compiled the files and run the program with Netbeans. in the connection settings panel, I can not connect to the mail server. It is trying to connect and waiting so long. At last I'm getting the message "unable to connect". I've tried gmail, yahoo and other mails. And I cant find where the problem is, please help me.
    thanks.

  2. #2
    levent Guest

    Default

    Can you attach netbeans project to this thread (click "Go Advanced" button at the right of "Post Quick Reply" button and add zip file of your project there.)? We can test the project here too.

    Note that some email servers only allows secure connection (e.g. gmail) and you might need to enable pop3/smtp for those servers (e.g. for gmail, you need to activate these from your options panel).

    You can also try the programs below:

    Java Tips - Other API Tips

    I had tried "Connecting GMail using POP3 connection with SSL" example there before. It should work.

  3. #3
    lunarstyle is offline Member
    Join Date
    May 2007
    Posts
    4
    Rep Power
    0

    Default zip file of the project

    you have to add javamail-1.4 and jaf-1.1
    import the mail.jar file to the project. it is in javamail, you need to download it,
    and import the activation.jar, it is in jaf-1.1
    I cant upload javamail and jaf because the size are too big.
    the only problem is I can not connet via the connection dialog .
    I've configured gmail pop settings.
    please help me to solve connection problem.
    Attached Files Attached Files

  4. #4
    levent Guest

    Default

    Hi again,

    Sorry for delay. I checked the code and run it. I think the problem is that this program is using POP3 and gmail and others require POP3 over SSH.

    If you have a gmail account, i recommend you to try the example below first. If it works for you then you can replace the javamail functionality in the client GUI easily.

    Java Tips - Connecting GMail using POP3 connection with SSL

  5. #5
    lunarstyle is offline Member
    Join Date
    May 2007
    Posts
    4
    Rep Power
    0

    Default

    Thank you very much Levent, I solved the problem.

  6. #6
    levent Guest

    Default

    Thank you very much Levent, I solved the problem.
    Can you share the solution? Is the problem SSL related?

  7. #7
    lunarstyle is offline Member
    Join Date
    May 2007
    Posts
    4
    Rep Power
    0

    Default

    yes, the solution is connecting gmail pop3 server over SSL. And also you have to create smtps connection to send a mail.Smtp is using SSL too. I added 2 connection codes to the project and now it works. Thanks again..

  8. #8
    gvpproject is offline Member
    Join Date
    Dec 2009
    Posts
    3
    Rep Power
    0

    Default please help

    hey can u please post the ssl code .. i got the pop3 code but its not working for my ssl code.... i would be happy if u post u r entire code

    regards,
    project

  9. #9
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    gvpproject: You know that this thread is over 2 years old, that the folks posting in it are no longer active in the forum. If you have a Java question, I suggest that you start your own thread. Much luck.

  10. #10
    gvpproject is offline Member
    Join Date
    Dec 2009
    Posts
    3
    Rep Power
    0

    Default please help

    hey can u help me in my code everything is working except the sending mail part.. the above placed code is the one which i too wrote..please see if u can help me.. thanks in advance

Similar Threads

  1. A Client to Send SMTP Mail
    By Java Tip in forum java.net
    Replies: 0
    Last Post: 04-07-2008, 08:06 PM
  2. Replies: 0
    Last Post: 04-04-2008, 02:49 PM
  3. Access Email usind a java mail client Access Email usind a java mail client
    By consult4u in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 07-31-2007, 08:29 AM
  4. getting problem in compiling java program?
    By sathish04021984 in forum New To Java
    Replies: 3
    Last Post: 07-30-2007, 09:26 AM
  5. Sending a mail with the local mail program
    By thedude in forum Advanced Java
    Replies: 2
    Last Post: 07-23-2007, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •