ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Philippe Daigle" <>
Subject Re: javax.mail.MessagingException: Could not connect to SMTP host
Date Wed, 25 Apr 2007 22:13:45 GMT
On 4/24/07, prasad kumar <> wrote:
>    Hi all,
>   I implemented the cruise control but the problem is ofter taking sucessfull build,while
sending the mails it is throwing exception as(i mentioned to whom do i need to send the mails(mailhost,port
no in config.xml)
>   net.sourceforge.cruisecontrol.CruiseControlException:
>   "javax.mail.MessagingException: Could not connect to SMTP host":
>   i have given the portno,mailhost correctly but it is giving the above exception.
>   do i need to configure anything extra for sending mails from my system
>   if any person knows,respond that's a great appreciation
>   thanks,
>   prasad
> ---------------------------------
>  Check out what you're missing if you're not on Yahoo! Messenger

There's a couple things you might try to get started.

First, here's a copy (sanitized) of my cruisecontrol mail section.
It's an internal SMTP server (not world-accessible) so there's no
authentication. Check your <publishers> element and see if anything
looks wrong:

            subjectprefix="MyProject build - "
            <always address=""/>

Secondly, if it's still not working, I'd check the network activity to
see what the java.exe process is really attempting to connect to. You
may be surprised and see it's connecting to locahost or something.
Setup a quick little build file that does nothing so you can trigger
it quickly from cruisecontrol. Launch TCPView
and sort by process name, and see what connections the java process is
trying to make: if everything looks good on that front, you'll know
the server is rejecting the connection for some reason, and you can
keep investigating there. In any case, it's probably a configuration

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message