This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Javamail question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Javamail question" Watch "Javamail question" New topic

Javamail question

Kasi Viswan
Ranch Hand

Joined: Sep 27, 2008
Posts: 42

I have a java client and at end of each task or run with my client i would like an email notification be sent to the user's email address.
Am not explicitly setting any port number in my code, it defaults to 25.

My office admin says port 25 will remain closed to block some virus.

What is the workaround for this issue, is there a way to change and set port number to a generic value that will always be open.

Please advice.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41034
Well, obviously you need to set the port to whatever port the server is listening to...

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: Javamail question
Similar Threads
JavaMail e-mail goes to Junk E-mail
problem in sending mail
JavaMail response -1 from Server : {
JSP using javamail
how to send email from java program