Title: Mail task error
Hi Ransel,
 
NAnt uses the .NET SmtpMail classes to send email, and these rely on CDOSYS. Perhaps CruiseControl uses a completely managed SMTP implementation.
 
Gert


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ransel Lopez Mena
Sent: vrijdag 1 april 2005 19:06
To: [email protected]
Subject: [Nant-users] Mail task error

Hi everyone,

I am running CruiseControl into a Windows  2003 server and the mail task works properly. Now, on my Nant project I added a mail task to send when the build fails (I didn't find the way to do it through CruiseControl). Well, the problem is when my build fails my Mail Nant task also fails giving me this error message:

FailedBuild:

     [mail] Sending mail to [EMAIL PROTECTED]
     [call] D:\x build folder\cruise.build(290,4):
     [call] Error sending mail:
     [call] Error enountered while sending mail message.
     [call] Make sure that mailhost=[smtpserver] is valid
     [call]
     [call]     Could not access 'CDO.Message' object.
     [call]         Exception has been thrown by the target of an invocation.
     [call]             The transport failed to connect to the server.
     [call]

So, the message, doesn't go through…

I have exactly the same server and configuration under CruiseControl and everything works fine, but the Nant task doesn't work. Any hint?? Is there anything else I need to run this nant task?? Or, maybe is there anyways to specify email notification on cruise control when the build fails???

Thanks in advance for your help
ransel

Reply via email to