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?
Are there any exceptions in teamcity-server.log?
Just the one I posted above;
[2010-02-09 20:26:16,748] WARN - ication.email.EMailNotificator - Cannot send email notification: 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
OK, just realised that a ping to
smtp.google.com
is failing. So it's probably some sort of firewall/blocking issue
I know it's now probably outside the realm of this forum but has anyone got any ideas?
{EDIT} Although this might just be due to te proxy here... hmm.
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.