• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Mail on Websphere .. plz Help

 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly I am using WDSC on iseries 5.1 , on development side and WAS-Express 5.1 as production server;

I am starting to learn sending/reading e-mail thru java-mail API (which is part of J2ee, anyway )

I have a small servlet which sends e-mail (using MS Exchange as the Mail server);

It RUNS PERFECTLY on my development server; but gives a problem on my Production Server (on AS400)




I also have a JSP form page from where this servlet reads the request parameters;

My development side (WTE server on WDSC), has no problem in creating a Session with Mail server (i anyway have OutLook connected to Exchange server, so I guess it identifies the mail server and No prob with the servlet)

BUT talking about Production Server (WAS on iseries), it gives an error

[10/26/04 18:36:48:045 UTC] f4e9d255 SystemErr R Messaging exception: Sending failed;
nested exception is:
javax.mail.MessagingException: Unknown SMTP host: ***SERVER;
nested exception is:
java.net.UnknownHostException: ***SERVER


where ***SERVER is the host name of the Mail server (whose ip address is mentioned in the code)

anybody has a clue on how to sort this problem???

I really appreciate your help in this matter, very much.

Thanks a lot
 
rakkesh kumar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should give the Ip address of the SMTP server.

tehn it will work properly
 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks rakkesh ...

correct me, if i am wrong.. But I guess the mail server has both the SMTP server and POP3/IMAP server running, on the same machine..

So the IP address of the mail Server and the SMTP server should be the same..??

Thanks
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prashant,

if your both server SMTP and POP are on same machine then definitely IP address will be same.

but what makes difference is the PORT

POP server run on 110 PORT however SMTP runs on PORT 25

thanks....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic