Sending email using SMTP (Gmail) from Hudson CI
- by jensendarren
How can I set up Hudson CI so that I can send out emails from the server following a build failure? At the moment all I get is the following error:
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first
One solution is to start Hudson as follows:
java -Dmail.smtp.starttls.enable="true" -jar /usr/share/hudson/hudson.war
However, I am already using the following to start Hudson:
sudo /etc/init.d/hudson start
I am thinking the solution is to somehow set the system property mail.smtp.starttls.enable in a property file somewhere, but I have no idea how to do that. What are my options?
Thank you all in advance!