Email notification doesn’t work in Windows Server 2008.

Hello,

I have Windows Server 2008 and I’m trying to install email notification on team city server, but it seems like it doesn’t work with the operation system.

I’ve tried both – TC 4.5.4 and the latest build of TC 5 (TeamCity-10307) but when I’m trying to test email notification, I get the following error:

javax.mail.MessagingException: Could not connect to SMTP host:, port:

Also I’ve tried to use several hosts – ‘smtp.gmail.com’ and the corporative host, but in all cases email notification fails.

Windows firewall is disabled on the server, so I can’t be a problem I think.

What am I doing wrong?

Thanks, Eugene K
6 comments
Comment actions Permalink

Hi!

Just to inform you that it can work on Windows Server 2008 x64.

What's the full message?
Can you access your SMTP server with a telnet command?

Regards,

Olivier.

0
Comment actions Permalink



Hi Oliver,
thanks for the reply.


I've mentioned the full message, here it is:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 587

I’m not familiar with telnet, but I’ve tried to send email using simple console app written on .NET, and it works…

Any suggestions?

0
Comment actions Permalink

Hi!

If you launched the simple console app from the TeamCity server and if you're also using the same parameters, I can't see what's wrong to your system.

Olivier.

0
Comment actions Permalink

Oliver,
is there any way to see an exception details? Something like log file or other... Because the message I get is absolutely uninformative.
Eugene K

0
Comment actions Permalink

Pavel,
thank you, now it works! The problem was in smtp port. I used 587, and it's pretty strange, but it works in console app I've mentioned. After I changed port to 465 as your documentation says, I was able to send the test message.
Eugene K

0

Please sign in to leave a comment.