From: David H. <pro...@ma...> - 2008-07-29 18:11:32
|
Hello all, I cannot send a message via smtp on my deployment box using ERJavaMail. I have used the same property setting in other applications. Why is this being resolved correctly in development, but not in deployment? How can I debug this? WO 5.3, Latest Wonder build for 5.3 # The SMTP host name to use. er.javamail.smtpHost = smtp David **Development Box** This line in Application.java: NSLog.out.appendln("SMTPHost " + this.SMTPHost() ); results in: Jul 29 10:49:31 MailingList[49624] (ERXNSLogLog4jBridge.java:40) INFO NSLog - SMTPHost smtp DEBUG: setDebug: JavaMail version 1.4.1 DEBUG: getProvider() returning javax.mail.Provider [TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] DEBUG SMTP: useEhlo true, useAuth false DEBUG SMTP: trying to connect to host "smtp", port 25, isSSL false Jul 28 18:16:23 MailingList[53146] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Commit Internal Transaction C: QUIT S: +OK Bye-bye. Jul 28 18:16:23 MailingList[53146] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Begin Internal Transaction Jul 28 18:16:23 MailingList[53146] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: "SELECT t0."email", t0."fromAddress", t0."id", t0."listserveDesc", t0."mailServerName", t0."mailServerPassword", t0."verifySenderListID" FROM "List_Serv_Address" t0"> Jul 28 18:16:23 MailingList[53146] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - 4 row(s) processed Jul 28 18:16:23 MailingList[53146] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Commit Internal Transaction 220 pd2ml1so-dmz.prod.shaw.ca ESMTP DEBUG SMTP: connected to host "smtp", port: 25 EHLO david-holts-computer.local -- snip-- etc. etc **Deployment Box** This line in Application.java: NSLog.out.appendln("SMTPHost " + this.SMTPHost() ); results in: Jul 29 11:06:05 MailingList_v1[55556] (ERXNSLogLog4jBridge.java:40) INFO NSLog - SMTPHost smtp C: TOP 2 0 DEBUG: setDebug: JavaMail version 1.4.1 DEBUG: getProvider() returning javax.mail.Provider [TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] DEBUG SMTP: useEhlo true, useAuth false DEBUG SMTP: trying to connect to host "smtp", port 25, isSSL false Jul 28 18:20:26 MailingList_v1[55556] (ERMailSender.java:259) ERROR er.javamail.ERMailSender - Unable to connect to SMTP Transport. MessagingException: Unknown SMTP host: smtp javax.mail.MessagingException: Unknown SMTP host: smtp; nested exception is: java.net.UnknownHostException: smtp at com.sun.mail.smtp.SMTPTransport.openServer (SMTPTransport.java:1389) at com.sun.mail.smtp.SMTPTransport.protocolConnect (SMTPTransport.java:412) at javax.mail.Service.connect(Service.java:288) at javax.mail.Service.connect(Service.java:169) at javax.mail.Service.connect(Service.java:118) at er.javamail.ERMailSender._connectedTransportForSession (ERMailSender.java:255) at er.javamail.ERMailSender.run(ERMailSender.java:287) at java.lang.Thread.run(Thread.java:613) Caused by: java.net.UnknownHostException: smtp at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:430) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at com.sun.mail.util.SocketFetcher.createSocket (SocketFetcher.java:233) at com.sun.mail.util.SocketFetcher.getSocket (SocketFetcher.java:189) at com.sun.mail.smtp.SMTPTransport.openServer (SMTPTransport.java:1359) ... 7 more Jul 28 18:20:26 MailingList_v1[55556] (ERMailSender.java:320) ERROR er.javamail.ERMailSender - Can't find to mail server, exiting S: +OK headers follow. |