Yes. I didn't specify the port number. But it works as standalone command line(main method), it knows port "465".
How does JavaMail API knows the port number? Strange...
[Message sent by forum member 'taolu2000' (taolu2000_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=365667