This Question is Assumed Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Mar 18, 2010 3:38 PM by Jarrett Meyer  
Andy Fearon Newbie 3 posts since
Feb 9, 2010
Currently Being Moderated

Feb 9, 2010 8:13 PM

Problem using gmail as an smtp

I'm trying to use TeamCity for a college project and have pretty much everything sorted. All I need now is to get the email notification working and I'll be done.

 

However, I've been trying to set it up using my gmail account as per the instruction here; http://confluence.jetbrains.net/display/TCD4/Setting+up+Google+Mail+and+Google+Talk+as+Notification+Servers

 

and I've not had any luck thus far. The error message I'm getting is as follows...

 

javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
  nested exception is:
java.io.IOException: Couldn't connect using "javax.net.ssl.SSLSocketFactory" socket factory to host, port: smtp.gmail.com, 465; Exception: java.lang.reflect.InvocationTargetException

 

I've checked that SSL is enabled and firewalls have been turned off. But still I can't get the connection to succeed.

 

Any ideas?

Pavel Sher JetBrains 2,081 posts since
Mar 6, 2008
Currently Being Moderated
Feb 10, 2010 10:40 AM in response to: Andy Fearon
Re: Problem using gmail as an smtp

Are there any exceptions in teamcity-server.log?

Jarrett Meyer Newbie 3 posts since
Nov 23, 2009
Currently Being Moderated
Mar 18, 2010 3:38 PM in response to: Andy Fearon
Re: Problem using gmail as an smtp

If you're using an @gmail.com email address, then the port is 465. If you're using a Google Docs account that doesn't end in @gmail.com, then you should point to port 587. Be sure to include the domain as part of the username.

More Like This

  • Retrieving data ...