I'm new to jenkins . I did successfully setup jenkins in windows remote server and able to run automation scripts.I work in an organisation under proxy.
After successful build I have to trigger email and send automation test reports.
Following are the settings that I've applied inside Manage Jenkins -> Configure System
Jenkins Location
System Admin e-mail address = myemail@companyname.com
E-mail Notification:
SMTP server = smtp.office365.com / email-smtp.companyemailservername.com
Default user e-mail suffix = @companyname.com
Use SMTP Authentication = unchecked
User Name = myemail@companyname.com
Password = *****
Use SSL = (kept unchecked)
SMTP Port = 587
Reply-To Address = myemail@companyname.com
Charset = UTF-8
When I try to test email using "Test configuration" button on the same page, I'm getting following error.
****java.net.ConnectException: Connection timed out: connect
Caused: javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-west-2.amazonaws.com, port: 587;
nested exception is: java.net.ConnectException: Connection timed out: connect****
Can someone help if i have to nake any extra settings. I did even add Java args based on suggestions from others in jenkins.xml file