Forum Discussion

iumez's avatar
11 years ago

[CodeReviewer] Unable to Send Emails

I've installed Code Reviewer on a Windows 7, 32bit machine.



I configured the smtp server for anonymous access to an email server on our local network: smtp.localnet.com, port 25



When I attempt to send a test email, I get the following error:


Error: Error sending email: Could not connect to SMTP host: smtp.localnet.com, port: 25




I'm able to telnet successfully to that same host and port and send emails from that same machine.



Turning on debug logging, I only get the following message when sending the test email fails:




 2014-04-07 10:15:01,327 ERROR http-8182-1 com.smartbear.ccollab.Mailer - Error sending email: Could not connect to SMTP host: smtp.localnet.com, port: 25



Any ideas?


 

2 Replies

  • I'm testing the free CodeReviewer for potential use in our shop and am experiencing the same issue. I am able to telnet to my smtp server from the server hosting the CodeReviewer but can't seem to get the email working which makes the notifications useless.



    Anyone find a fix for this?
  • I was able to get the notifications working by adding these options to the ccollab-server.vmoptions.properties file.



    -Djava.net.preferIPv4Stack=true

    -Dsmartbear.mail.smtp.connectiontimeout=100000

    -Dsmartbear.mail.smtp.timeout=100000