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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java mail" Watch "java mail" New topic

java mail

vicky malhotra

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.

I agree. Here's the link:
subject: java mail
It's not a secret anymore!