Skip navigation
robertlforsyth99
Currently Being Moderated

Pulling  my hair out with new CF10 install

Jul 19, 2013 4:52 AM

Tags: #mail #cfmail #. #smtp_credentials

Trying to send mail with CF10 and I am getting connect errors from Java.  I have tried to get the mail function to work with 2 internal SMTP (MSFT and Smartermail) and one external.  I can successfully verify connections to any of these servers, but when I try to send mail to them, I get this in the error log:

 

"Error","scheduler-1","07/19/13","07:40:32",,"javax.mail.MessagingExce ption: IOException while sending message;   nested exception is:java.net.ConnectException: Connection timed out: connect"

 

the full exception is:

 

"Error","scheduler-1","07/19/13","07:41:35",,"javax.mail.MessagingExce ption: IOException while sending message;   nested exception is:java.net.ConnectException: Connection timed out: connect"

javax.mail.MessagingException: IOException while sending message;

  nested exception is:


java.net.ConnectException: Connection timed out: connect

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)

at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:1300)

at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:1197)

at coldfusion.mail.MailSpooler.deliverStandard(MailSpooler.java:1613)

at coldfusion.mail.MailSpooler.run(MailSpooler.java:1578)

at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211)

at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)

Caused by: java.net.ConnectException: Connection timed out: connect


at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI mpl.java:69)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja va:339)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket Impl.java:200)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java :182)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)

at java.net.Socket.connect(Socket.java:579)

at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)

at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160 )

at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)

at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:270)

at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH ttpClient(AbstractDelegateHttpsURLConnection.java:191)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:931)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:177)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:1299)

at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl .getInputStream(HttpsURLConnectionOldImpl.java:224)

at java.net.URL.openStream(URL.java:1037)

at javax.activation.URLDataSource.getInputStream(URLDataSource.java:107)

at javax.activation.DataHandler.writeTo(DataHandler.java:305)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:865)

at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:462)

at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:10 3)

at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:88 4)

at javax.activation.DataHandler.writeTo(DataHandler.java:317)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)

at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)

... 6 more

 

 

Again, I can verify the server with the admin tool, and I can manually connect to the SMTP server with telnet and send messages.  My port setting is correct and username and password are correct.  I even setup MSFT SMTP server with no username and I was able to send mail through telnet to it, but not CF.

 

Any help would be greatly appreciated. 

 

- Robert

 
Replies
  • Currently Being Moderated
    Jul 22, 2013 6:42 AM   in reply to robertlforsyth99

    Can you post the code of your test <cfmail> call...

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 22, 2013 9:05 AM   in reply to robertlforsyth99

    Can you check a cfemail sample(might be above sample) but with hardcoded email to address? It looks, it processing application but failing before data transfer, might be not getting to attribute "getuser.email" value.

    Check it also with any external domain to attribute value at least gmail or yahoo?

     

    Regards,

    Kaif Akbar

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2013 12:53 PM   in reply to robertlforsyth99

    It may be the scenario that its working on one of the server but it may not be working on the errorneous server as it may not be getting value of "getuser.email" on this environment.

    What is the behavior of this page when you hardcode the value of "getuser.email" on this cfm page?

     

    Regards,

    Kaif Akbar

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points