Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2007, 07:14 PM
Member
 
Join Date: May 2007
Posts: 4
lunarstyle is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-27-2007, 07:30 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-28-2007, 03:31 PM
Member
 
Join Date: May 2007
Posts: 4
lunarstyle is on a distinguished road
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
File Type: zip mailclient.zip (39.0 KB, 5 views)
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-31-2007, 11:10 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-01-2007, 05:52 AM
Member
 
Join Date: May 2007
Posts: 4
lunarstyle is on a distinguished road
Thank you very much Levent, I solved the problem.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-01-2007, 07:36 AM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Quote:
Thank you very much Levent, I solved the problem.
Can you share the solution? Is the problem SSL related?
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 06-02-2007, 12:43 AM
Member
 
Join Date: May 2007
Posts: 4
lunarstyle is on a distinguished road
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..
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Client to Send SMTP Mail Java Tip java.net 0 04-07-2008 09:06 PM
When to use –client and -server option while running a java program Java Tip java.lang 0 04-04-2008 03:49 PM
Access Email usind a java mail client Access Email usind a java mail client consult4u Enterprise JavaBeans 2 07-31-2007 09:29 AM
getting problem in compiling java program? sathish04021984 New To Java 3 07-30-2007 10:26 AM
Sending a mail with the local mail program thedude Advanced Java 2 07-23-2007 01:19 PM


All times are GMT +3. The time now is 03:07 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org