From the listeners.html help page:

 

MailLogger

The MailLogger captures all output logged through DefaultLogger (standard NAnt output) and will send success and failure messages to unique e-mail lists, with control for turning off success or failure messages individually.

Properties controlling the operation of MailLogger are:

Property

Description

Required

MailLogger.mailhost

The mail server to use.

No, default is "localhost"

MailLogger.from

The address of the e-mail sender.

Yes, if mail needs to be sent.

MailLogger.failure.notify

Send build failure e-mails ?

No, default is "true".

MailLogger.success.notify

Send build success e-mails ?

No, default is "true".

MailLogger.failure.to

The address to send build failure messages to.

Yes, if failure mail is to be sent.

MailLogger.success.to

The address to send build success messages to.

Yes, if success mail is to be sent.

MailLogger.failure.subject

The subject of build failure messages.

No, default is "Build Failure".

MailLogger.success.subject

The subject of build success messages.

No, default is "Build Success".

MailLogger.mailhost

Mail server to use

No, default "localhost"

Usage:

NAnt.exe -logger:NAnt.Core.MailLogger

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Block, Jeffrey A. (Jeff)
Sent: Friday, May 07, 2004 9:55 AM
To: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Emailing build results

 

Yes, I have already reviewed that page, but my confusion is that I don't

know _how_ to set the various properties.  Martin pointed me towards the

"mail" task, but it does not seem to have the properties of the MailLogger,

e.g. MailLogger.success.notify.  I want to make this false, instead of the

default value of true.  I only want an email if the build fails.

 

The page you reference tells how to invoke the various loggers/listeners on

the nant command line, but not how to set the properties. 

 

Thanks!

 

Jeff Block

 

 

-----Original Message-----

From: Gert Driesen [mailto:[EMAIL PROTECTED]

Sent: Friday, May 07, 2004 8:17 AM

To: Martin Gainty; Block, Jeffrey A. (Jeff);

[EMAIL PROTECTED]

Subject: Re: [Nant-users] Emailing build results

 

More information is available here :

http://nant.sourceforge.net/nightly/help/fundamentals/listeners.html

 

Gert

----- Original Message -----

From: "Martin Gainty" <[EMAIL PROTECTED]>

To: "Block, Jeffrey A. (Jeff)" <[EMAIL PROTECTED]>;

<[EMAIL PROTECTED]>

Sent: Friday, May 07, 2004 1:53 PM

Subject: Re: [Nant-users] Emailing build results

 

 

> Jeffrey

> Check out http://nant.sourceforge.net/nightly/help/tasks/mail.html

> If you supply a working SMTP Server you should be OK for sending

> automated

> emails-

> Martin

> ----- Original Message -----

> From: "Block, Jeffrey A. (Jeff)" <[EMAIL PROTECTED]>

> To: <[EMAIL PROTECTED]>

> Sent: Friday, May 07, 2004 7:45 AM

> Subject: RE: [Nant-users] Emailing build results

> 

> 

> > I need to start sending emails on failures only.  I've reviewed the

> > link below and believe that the MailLogger has the capability to do

> > what I

> want.

> > What I'm missing is where to set the properties that "controlling

> > the operation of MailLogger" like: MailLogger.from,

> > MailLogger.failure.to,

> etc.

> >

> > I do not see a MailLogger task, so do I just set properties in my

> buildfile

> > like:

> > <property "MailLogger.from" value="emailaddress" />

> >

> > If this is the idea, are the properties case sensitive?  (just want

> > to

> know,

> > I'd probably mimic the case on the page below)

> >

> > Thanks!

> >

> >

> > Jeff Block

> >

> >

> > -----Original Message-----

> > From: Gert Driesen [mailto:[EMAIL PROTECTED]

> > Sent: Saturday, April 03, 2004 2:59 AM

> > To: Peter Jones; [EMAIL PROTECTED]

> > Subject: Re: [Nant-users] Emailing build results

> >

> > I added a doc about loggers & listeners.  You can view it here :

> > http://nant.sourceforge.net/nightly/help/fundamentals/listeners.html.

> >

> > Hope this helps,

> >

> > Gert

> > ----- Original Message -----

> > From: "Peter Jones" <[EMAIL PROTECTED]>

> > To: <[EMAIL PROTECTED]>

> > Sent: Tuesday, March 30, 2004 3:36 AM

> > Subject: [Nant-users] Emailing build results

> >

> >

> > Is there a way to email the build results ?

> >

> > I guess I can create a wrapper .build file and then capture the

> > output but I'd like to do it in a single .build file if possible.

> >

> >

> >

> >

> > -------------------------------

> > Peter G Jones

> > University of Canterbury, NZ

> > -------------------------------

> > Senior Analyst/Programmer

> > Microsoft .Net MVP

> > Blog: http://jonsie.net

> >

> >

> >

> >

> >

> > -------------------------------------------------------

> > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux

> > tutorial presented by Daniel Robbins, President and CEO of GenToo

> > technologies. Learn everything from fundamentals to system

> > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick

> > _______________________________________________

> > Nant-users mailing list

> > [EMAIL PROTECTED]

> > https://lists.sourceforge.net/lists/listinfo/nant-users

> >

> >

> >

> >

> > -------------------------------------------------------

> > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux

> > tutorial presented by Daniel Robbins, President and CEO of GenToo

> > technologies. Learn everything from fundamentals to system

> > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click

> > _______________________________________________

> > Nant-users mailing list

> > [EMAIL PROTECTED]

> > https://lists.sourceforge.net/lists/listinfo/nant-users

> >

> >

> > ********************************************************************

> > ** PLEASE NOTE: The above email address has recently changed from a

previous

> naming standard -- if this does not match your records, please update

> them to use this new name in future email addressed to this individual.

> >

> > This message and any attachments are intended for the individual or

> > entity named above. If you are not the intended recipient, please do

> > not forward, copy, print, use or disclose this communication to

> > others; also please notify the sender by replying to this message,

> > and then delete it from your system.

> >

> > The Timken Company

> > ********************************************************************

> > **

> >

> >

> >

> > -------------------------------------------------------

> > This SF.Net email is sponsored by Sleepycat Software Learn developer

> > strategies Cisco, Motorola, Ericsson & Lucent use to

> deliver

> > higher performing products faster, at low TCO.

> > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3

> > _______________________________________________

> > Nant-users mailing list

> > [EMAIL PROTECTED]

> > https://lists.sourceforge.net/lists/listinfo/nant-users

> >

> 

> 

> -------------------------------------------------------

> This SF.Net email is sponsored by Sleepycat Software Learn developer

> strategies Cisco, Motorola, Ericsson & Lucent use to

deliver

> higher performing products faster, at low TCO.

> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3

> _______________________________________________

> Nant-users mailing list

> [EMAIL PROTECTED]

> https://lists.sourceforge.net/lists/listinfo/nant-users

> 

 

 

**********************************************************************

PLEASE NOTE: The above email address has recently changed from a previous naming standard -- if this does not match your records, please update them to use this new name in future email addressed to this individual.

 

This message and any attachments are intended for the

individual or entity named above. If you are not the intended

recipient, please do not forward, copy, print, use or disclose this

communication to others; also please notify the sender by

replying to this message, and then delete it from your system.

 

The Timken Company

**********************************************************************

 

 

 

-------------------------------------------------------

This SF.Net email is sponsored by Sleepycat Software

Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver

higher performing products faster, at low TCO.

http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3

_______________________________________________

Nant-users mailing list

[EMAIL PROTECTED]

https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to