Hi Manish,

I can't really see anything wrong in the information you provided.  Can you
try using the attached build file ?

Note: the MailLogger was intended to be used a logger, as it will also
output the logging to the console. If you specifiy it as a listener, then
all build output will be written to the console twice: once by the default
logger, and once by the MailLogger.  But it should (and it does on my
system) still work just fine.

Hope this helps,

Gert

----- Original Message ----- 
From: "Manish Jain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 2:47 AM
Subject: [Nant-users] Problem using MailLogger


Hi All, Might be some silly mistake but cannot catch it, Thanks for help
- Manish



I've placed following properties at the beginning of script


<property name="MailLogger.from"  value="[EMAIL PROTECTED]" />
<property name="MailLogger.mailhost" value="IP here" />
<property name="MailLogger.failure.notify" value="true"/>
<property name="MailLogger.success.notify" value="true"/>
<property name="MailLogger.failure.to" value="[EMAIL PROTECTED]"/>
<property name="MailLogger.success.to" value="[EMAIL PROTECTED]"/>
<property name="MailLogger.failure.subject" value="Build
successful"/>
<property name="MailLogger.success.subject" value="Build
failed"/>

I'm using following command:
nant -buildfile:wmc.build -listener:NAnt.Core.MailLogger -l:wmc.log

I get following error:

MailLogger failed to send e-mail!
System.ArgumentNullException: Value cannot be null.
Parameter name: Missing required parameter MailLogger.from.
   at NAnt.Core.MailLogger.GetPropertyValue(PropertyDictionary
properties, Strin
g name, String defaultValue) in C:\Documents and Settings\drieseng\Local
Setting
s\Temp\tmp33C.tmp\src\NAnt.Core\Log.cs:line 906
   at NAnt.Core.MailLogger.BuildFinished(Object sender, BuildEventArgs
e) in C:\
Documents and Settings\drieseng\Local
Settings\Temp\tmp33C.tmp\src\NAnt.Core\Log
.cs:line 862


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=ick
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Attachment: default.build
Description: Binary data

Reply via email to