This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes java mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java mail" Watch "java mail" New topic
Author

java mail

vicky malhotra
Greenhorn

Joined: Feb 05, 2005
Posts: 16
I use the Transport.send to send a mail and give only the mail server host address and not the port number, it senda the mail. Does it not need the port number as well??
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Javamail will use the default SMTP port to send mail on if you don't supply a port number yourself.


42
 
 
subject: java mail