a problem about java mail client program please HELP!

I have downloaded java mail client program class files from the page at this link http://www.java-tips.org/java-se-tips/javax.swing/how-to-create-an-e-mail-client-in-java-2.html . And I downloaded Javamail api. I compiled the files and run the program. in the connection settings panel, I can not connect to the mail server. I've tried gmail, yahoo and other mails. And I cant find where the problem is, please help me.
thanks.
[437 byte] By [lunarstyle] at [2007-11-20 8:08:26]