I'm hoping someone has run into this and can lend a hand. I have
configured CC.NET to use the MailPublisher instead of using NAnt's
MailLogger. However, I am unable to receive any emails from CC.NET,
there is nothing in the log file and I see no activity going to the
SMTP server when monitoring via WireShark. To test connection from
the server running CC.NET, I confirmed that NAnt can send emails when
using the MailLogger. So, I am completely at a loss here.
Here is my ccnet.config:
<project name="Project X">
<workingDirectory>C:\ProjectX\BAT</workingDirectory>
<artifactDirectory>C:\Artifacts\ProjectX</artifactDirectory>
<webURL>http://localhost/ccnet/server/build-main/project/ProjectX/
ViewProjectReport.aspx</webURL>
<triggers />
<tasks>
<nant>
<executable>C:\Program Files\nant-0.85\bin\NAnt.exe</
executable>
<baseDirectory>C:\ProjectX\BAT</baseDirectory>
<buildArgs>-listener:CCNetListener,CCNetListener</buildArgs>
<buildFile>ProjectX.build</buildFile>
<logger>NAnt.Core.XmlLogger</logger>
<buildTimeoutSeconds>300</buildTimeoutSeconds>
<targetList>
<target>debug-build</target>
</targetList>
</nant>
</tasks>
<publishers>
<xmllogger logDir="C:\BuildCCNetLogs\ProjectX" />
<email mailhost="mailrelay.acompany.com"
from="[email protected]" mailport="25">
<includeDetails>True</includeDetails>
<users>
<user name="John Doe" address="[email protected]"
group="" />
</users>
<groups />
<converters />
<modifierNotificationTypes>
<NotificationType>Always</NotificationType>
</modifierNotificationTypes>
</email>
</publishers>
<state type="state" directory="C:\BuildState" />
<labeller type="defaultlabeller">
<incrementOnFailure>True</incrementOnFailure>
</labeller>
</project>