Here’s a ccnet example of a publisher block that sends mail.



      <email from="" mailhost="" includeDetails="TRUE">


            <user name="frank" group="buildmaster" address=""/>

            <user name="bob" group="buildmaster" address=""/>

            <user name="jon" group="buildmaster" address=""/>


             <user name="paul" group="developers" address=""/>



            <group name="buildmaster">





            <group name="developers">









For us the publishers block is the last thing in the project block.


From: Chris Fouts []
Sent: Tuesday, May 10, 2011 4:07 PM
Subject: [NAnt-users] (no subject)


I've started using ccnet with NAnt, where my ccnet script calls a NAnt script to do the actual build. However, I want ccnet to send an e-mail, not nant, when a script fails. I have a <publisher> ccnet block that I want executed that sends the e-mail.



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***