Re: Sending an e-mail on errors.
Doug Breaux <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Oops, "username", not "user". See: http://cruisecontrol.sourceforge.net/main/configxml.html#email I think you'll need to specify your Gmail account credentials (so Google will allow you to send through them): username= password= And to keep that authentication secure, you'll want: usessl=true mailport=587 On 10/8/2010 2:53 PM, Mark Boon wrote: > Hello Doug, > > Thanks for taking the time to reply. > > I did not do anything for SSL connectivity. If that's required, how do > I do that in Cruise Control? > > Mark > > > On Fri, Oct 8, 2010 at 3:53 AM, Doug Breaux > <[email protected]> wrote: >> I think smtp.gmail.com requires TLS (SSL) connectivity, which requires user >> authentication to send, and it appears you're not configured for that? >> >> On 10/7/2010 9:26 PM, Mark Boon wrote: >>> I wanted to send a notification of build failures by e-mail, figuring >>> it should be fairly straightforward. But I get a bit of a cryptic >>> message: >>> >>> [cc]Oct-07 16:17:19 EmailPublisher- Invalid email: User >>> [cc]Oct-07 16:17:19 Project - exception publishing results with >>> net.sourceforge.cruisecontrol.publishers.LinkEmailPublisher for >>> project tetrisworld >>> net.sourceforge.cruisecontrol.CruiseControlException: >>> javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command >>> first. w9sm3024447wfd.14 >>> >>> and then a long stack-trace. >>> >>> My config.xml contains the following: >>> >>> <publishers> >>> <email returnaddress="[email protected]" >>> mailhost="smtp.gmail.com" password="xxx" username="[email protected]"> >>> <failure address="[email protected]"/> >>> </email> >>> </publishers> >>> >>> In reality "[email protected]" is my real gmail address of course. >>> >>> I have Googled until I weighed an ounce, but didn't find much in terms >>> of examples or documentation how to make this work. Is it as simple of >>> having a wrong attribute in the XML above, or is there another common >>> way to fix this? >>> >>> In general CC seems to be rather poor in reporting what could be wrong >>> in the XML. >>> >>> Any help would be greatly appreciated. >>> >>> Mark ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb