Forums Register Login

mail.MessagingException when trying to connect to SMTP

+Pie Number of slices to send: Send
I'm trying to use JavaMail to connect to SMTP through localhost and I get this error which says its unable to connect to SMTP using port 25. I've tryed using
telnet localhost 25- still unable to connect. I've added port 25 and localhost to winXP firewall. still no help. I have no other anti-virus or firewall besides what comes with XP Pro (not too smart I know). Any ideas guys?

This seems like a common enough problem, but I'm not finding any answers on the web
+Pie Number of slices to send: Send
If Telnet can't connect, and you don't have a firewall or anti-virus in the way, then one possibility is that you don't have a server running on your computer that is listening at port 25.
+Pie Number of slices to send: Send
Thanks for replying Paul. I am totally stumped by this one.

I start up tomcat (which i guess listens on port 25, but i'm not sure of that)
...still getting same error.
After some more research online, I came to the conclusion that I would have to make changes to the Windows firewall. But: Control panel, Windows Firewall->Advanced Tab->Local area connection->Settings-> "check Internet Mail Server SMTP"-> Edit... still wont work.

Turn off firewall... wont work



[ March 26, 2007: Message edited by: kwame Iwegbue ]
+Pie Number of slices to send: Send
 

Originally posted by kwame Iwegbue:
I start up tomcat (which i guess listens on port 25, but i'm not sure of that)

Nope. Tomcat is not an SMTP server, so you won't find it listening at port 25.
+Pie Number of slices to send: Send
Thanks Paul,

it works now when I use my company's SMTP server.
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 727 times.
Similar Threads
problems running the program
I need a smtp Server for my javamail!!!??
javaMail and loosing my marbles!
java mail - smtp config problem
How to configure JAMES in home computer
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:21:06.