Sending email using smpt (Gmail) from Hudson CI
Posted
by jensendarren
on Server Fault
See other posts from Server Fault
or by jensendarren
Published on 2010-05-22T11:14:47Z
Indexed on
2010/05/22
11:21 UTC
Read the original article
Hit count: 450
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!
© Server Fault or respective owner