Skip to main content
Participating Frequently
November 5, 2013
Question

Cannot connect to mail server with ColdFusion 10

  • November 5, 2013
  • 1 reply
  • 2621 views

I am doing some research on converting from CF9 to CF10.  I have installed CF10 Developer Edition on my workstation.  For some reason I cannot connect to the Mail Server from CF 10 Admin Page (Connection Verification Failed from Mail Server Settings page).  It is working fine with the same settings within CF 9-I have both CF9 and CF10 Dev Edition installed.  Has anyone else run into this?  I am not having issues connecting to dbases or other external sources, so I do not believe it's a network connectivity issue, however in mail.log I am getting the error below:

"java.net.SocketException: Network is unreachable: Connect" 

Why would this be a problem with CF10 and not CF9?

This topic has been closed for replies.

1 reply

Anit_Kumar
Community Manager
Community Manager
November 5, 2013

Hello dave7273,

What is the SMTP port. By default it is 25. Change the Server Port as per your mail server.

Also, please select the Verify Mail Server Connection option to make sure ColdFusion can access your mail server.

Regards,

Anit Kumar

dave7273Author
Participating Frequently
November 5, 2013

Anit_Kumar,

Thank you for your response.  The SMTP port is set the same as it is in my CF9 Admin.  I also tried to verify mail server connection and received the message "Connection Verification Failed".  So it seems like it is an issue specifically with CF10 as the settings appear to be identical to CF9.

Thanks again,

Dave

Carl Von Stetten
Legend
November 5, 2013

Does your email server have a whitelist of IPs that it accepts SMTP from?  If so, you'll need to add the IP address of your CF10 server.  In my organization, the IT department has to add IP addresses to the whitelist for my CF servers to allow them to send email through the IT mail server.

-Carl V.