I am trying to use the Email publisher using hotmail. Subversion works, MSBuild works but the last step to send an email fails with following error message: [App:ERROR] Publisher threw exception: ThoughtWorks.CruiseControl.Core.CruiseCo ntrolException: EmailPublisher exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote ser ver ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 209.85.227.108:587
Environment: Windows 7 64 bit English Settings: <email mailport="587" includeDetails="TRUE" mailhostUsername="[email protected]" mailhostPassword="Password" useSSL="TRUE"> <from>[email protected]</from> <mailhost>smtp.live.com</mailhost> <users> <user name="BuildGuru" group="buildmaster" address="email1" / > <user name="JoeDeveloper" group="developers" address="email2" /> </users> <groups> <group name="developers"> <notifications> <notificationType>Failed</notificationType> <notificationType>Fixed</notificationType> </notifications> </group> <group name="buildmaster"> <notifications> <notificationType>Always</notificationType> </notifications> </group> </groups> <converters> <regexConverter find="$" replace="@sapient.com" /> </converters> <modifierNotificationTypes> <NotificationType>Failed</NotificationType> <NotificationType>Fixed</NotificationType> </modifierNotificationTypes> <subjectSettings> <subject buildResult="StillBroken" value="Build is still broken for {CCNetProject}" /> </subjectSettings> <xslFiles> <file>xsl\header.xsl</file> <file>xsl\compile.xsl</file> <file>xsl\unittests.xsl</file> <file>xsl\modifications.xsl</file> <file>xsl\msbuild2ccnet.xsl</file> </xslFiles> <attachments> <file>C:\Data\AFile.txt</file> <file>Relative.txt</file> </attachments> </email> Error Message: [App:ERROR] Publisher threw exception: ThoughtWorks.CruiseControl.Core.CruiseCo ntrolException: EmailPublisher exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote ser ver ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 209.85.227.108:587 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddre ss socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Sock et s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object ow ner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket 6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncD elegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at ThoughtWorks.CruiseControl.Core.Publishers.EmailGateway.Send(MailMessage m ailMessage) at ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage(Stri ng from, String to, String replyto, String subject, String message, String worki ngFolder) ---> System.Net.Mail.SmtpException: Failure sending mail. --- > System. Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets .SocketException: No connection could be made because the target machine activel y refused it 209.85.227.108:587 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddre ss socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Sock et s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object ow ner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket 6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncD elegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at ThoughtWorks.CruiseControl.Core.Publishers.EmailGateway.Send(MailMessage m ailMessage) at ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage(Stri ng from, String to, String replyto, String subject, String message, String worki ngFolder) --- End of inner exception stack trace --- at ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage(Stri ng from, String to, String replyto, String subject, String message, String worki ngFolder) at ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.Execute(IIntegra tionResult result) at ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.Run(IIntegrationResult resu lt) at ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask task, IIntegrationRe sult result, Boolean isPublisher) at ThoughtWorks.CruiseControl.Core.Project.PublishResults(IIntegrationResult result, Dictionary`2 parameterValues) [App:INFO] Integration complete: Exception - 22.08.2011 18:27:51
