-
1. Re: JavaMail in servlet can't find smtp host.
sunspider Aug 7, 2006 10:01 AM (in response to sunspider)Sorry, not can't find host, but can't connect. The message is following:
+++++++++++++++++++++++++++++
21:58:09,667 ERROR [STDERR] javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: Could not connect to SMTP host: smt
p.126.com, port: 25;
nested exception is:
java.net.SocketException: Software caused connection abort: connect
21:58:09,667 ERROR [STDERR] at javax.mail.Transport.send0(Transport.java:218
) -
2. Re: JavaMail in servlet can't find smtp host.
sunspider Aug 8, 2006 11:57 AM (in response to sunspider)I understand that:
1) my pc has antivirus software that forbid outgoing 25 traffic,
2) smtp's security don't use mail accournt as password, it recognizes smtp server names. but I had send a mail to mailmaster@xxx.com :) -
3. Re: JavaMail in servlet can't find smtp host.
yong_jiao Aug 8, 2006 7:44 PM (in response to sunspider)Try to ping that intended smtp host at that port:
telnet smtp.126.com 25
If you can connect into it, it means your SMTP server is running and you have no firewall issue.
By the way, why don't you get sess1 the same way you got sess?
Why don't try to send using sess for debugging purpose? -
4. Re: JavaMail in servlet can't find smtp host.
sunspider Aug 9, 2006 6:26 AM (in response to sunspider)yeah, I request the smtp server smtp.xyz.com to relay a message to mailmaster@xyz.com and succeeded.Bbut it deny to relay message to other smtp servers, since I'm not authenticated. Email account doesn't equals to smtp admin passwd