dcsimg
java mail server error
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vijay_alayan
Posted On:   Tuesday, January 30, 2007 02:48 PM

hi friends please help me to clear the following error
im using jdk1.6.0& java servlet development kit & java mail 1.4
while running the mailservlet i got the following error message
ERRoR javax.mail.messaginbg Exception:could not connect to smtp host:localhost,port:25;
nested Exception is
java.net.ConnectException:Connection refused:connect
if i specify the port number as 3306 i got the following error message
ERRoR javax.mail.messaginbg Exception:could not connect to smtp host:localhost,port:3306,response:-1
pls help me to rectify this as soon as possible

Re: java mail server error

Posted By:   Robert_Lybarger  
Posted On:   Tuesday, January 30, 2007 08:13 PM

Solution: install and start a mail server. Change your code back to port 25. Why would you bother trying to use the mysql port (3306) to test a mail app anyway?
About | Sitemap | Contact