Title: Message
Jean,
 
Thanks for your help.  I replaced the file line with the message="something" and it works! 
 
Why both file= and attachments=?  It's being newbie and also from the example comes with NAnt --> doc\help\tasks\mailtask.html  :-(
 
thanks,
Daniel
 
 
-----Original Message-----
From: Jean Rajotte [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 7:01 PM
To: 'Daniel Nguyen'; [EMAIL PROTECTED]
Subject: RE: [Nant-users] Sendmail problem

shot in the dark.  have you tried adding a message="test message" attribute?
also, why both file=  and attachments=  ?
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Nguyen
Sent: Tuesday, July 22, 2003 19:25
To: '[EMAIL PROTECTED]'
Subject: [Nant-users] Sendmail problem

Hi all,
 
Being a newbie to NAnt, my apologies in advance if this problem has been addressed before. 
 
I'm having a problem with the mail task and not sure what I'm doing wrong.  Any help will be greatly appreciated.
 
The following is part of build file --
 
<!-- Sendmail -->
 <target name="sendmail" description="Send mail notification to intended receipients" >
      <mail 
           from="[EMAIL PROTECTED]"
            tolist="[EMAIL PROTECTED]"
            cclist="[EMAIL PROTECTED]"
            bcclist="[EMAIL PROTECTED]"
            subject="Some build process is completed."
            file="${project.build.dir}\build.log"
            attachments="${project.build.dir}\build.log"
            mailhost="mail.lgc.com"
         />
 </target>
 
 
 
This is the command line I used to test it --
 
nant -v -f:hhfo.build sendmail
 
 
And this is the error I got when I tested it --

settings warning: frameworkinfo mono-0.21 is invalid and has not been loaded: fr
ameworkDir C:\mono-0.21\install\bin does not exist
settings warning: frameworkinfo mono-0.22 is invalid and has not been loaded: fr
ameworkDir C:\mono-0.22\install\bin does not exist
settings warning: frameworkinfo mono-0.23 is invalid and has not been loaded: fr
ameworkDir C:\mono-0.23\bin does not exist
settings warning: frameworkinfo sscli-1.0 is invalid and has not been loaded: fr
ameworkDir C:\sscli\build\v1.x86fstchk.rotor does not exist
Buildfile: file:///D:/HHFO/buildfiles/hhfo.build
Base Directory: D:\HHFO\buildfiles
 
sendmail:
 
BUILD FAILED
Mail attribute "file" or "message" is required.:
SourceForge.NAnt.BuildException: Mail attribute "file" or "message" is required.
 
   at SourceForge.NAnt.Tasks.MailTask.ExecuteTask()
   at SourceForge.NAnt.Task.Execute()
   at SourceForge.NAnt.Target.Execute()
   at SourceForge.NAnt.Project.Execute(String targetName)
   at SourceForge.NAnt.Project.Execute()
   at SourceForge.NAnt.Project.Run()
 
More information was logged via log4net at level debug
 
Try 'nant -help' for more information
 
 
 
 

Daniel Nguyen
Lanmark Graphics Corporation
[EMAIL PROTECTED]


 

Reply via email to