Kanhu Charan Sahu
Kanhu Charan Sahu

Reputation: 157

Connection Verification Failed while attempting to verify mail setting in ColdFusion 10 administrator

I am using ColdFusion 10 in windows server 2008 R2. In administrator, i am getting connection error while verifying the mail server settings.

I am using the below settings,

server : smtp.gmail.com 
port: 465
Username : [email protected] 
password: xxxxxxxx

and checked Enable SSL socket connection to mail server.

With this settings, i am getting the error "Connection Verification Failed !".

Upvotes: 7

Views: 3531

Answers (5)

Molomby
Molomby

Reputation: 6579

As others have mentioned, double check your SSL/TLS options and port numbers. Also check for leading/trailing spaces in your SMTP credentials. I spent 20 mins troubleshooting this issue once and it turned out to be caused by a trailing space in the SMTP username field.. :/

Upvotes: 0

Gary Stanton
Gary Stanton

Reputation: 1435

I've seen this issue a lot recently, due to Google making some changes to the way that you access GMail accounts.

Specifically, you may find a setting in your account that refers to allowing access to 'Less secure apps'. Essentially, Google are trying to force oAuth style authentication, and denying access via username/password auth.

You can re-enable the 'less secure' method of authentication in your account settings: http://www.google.com/settings/security/lesssecureapps

Upvotes: 1

Richard
Richard

Reputation: 21

Removing username and password worked for me in CF11.

Upvotes: 2

Snehanjali Sahoo
Snehanjali Sahoo

Reputation: 3462

I have also faced this same issue and solved it by changing the port from 465 to 587.

In ColdFusion Administrator check the 'Enable TLS Connection to mail server' check box and remove check from 'Enable SSL connection to mail server'.

Now you can verify the connection.

Thanks

Upvotes: 4

Scott Stroz
Scott Stroz

Reputation: 7519

You need to check the 'Enable TLS Connection to mail server' checkbox as well.

I was unable to verify the connection on my test server using the settings you have specified - but using my own credentials.

I was able to verify connection when TLS was enabled.

Upvotes: 3

Related Questions