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