You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by prasad kumar <pr...@yahoo.co.in> on 2007/04/24 06:02:59 UTC

javax.mail.MessagingException: Could not connect to SMTP host

   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 

Re: javax.mail.MessagingException: Could not connect to SMTP host

Posted by Jean-Philippe Daigle <jp...@softwareengineering.ca>.
On 4/24/07, prasad kumar <pr...@yahoo.co.in> 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


Hi,
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:

    <publishers>
        <htmlemail
buildresultsurl="http://server/cruisecontrol/buildresults/myproject-head"
            mailhost="192.168.1.238"
            username=""
            password=""
            returnaddress="returnaddress@example.com"
            skipusers="true"
            subjectprefix="MyProject build - "
            css="css/cruisecontrol.css">
            <always address="me@example.com"/>
        </htmlemail>
    </publishers>

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
(http://www.microsoft.com/technet/sysinternals/utilities/TcpView.mspx)
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
issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org