What process is writing to that file ? If its actually a NAnt build log, you might be better off using the MailLogger (http://nant.sourceforge.net/nightly/help/fundamentals/listeners.html).
Gert ----- Original Message ----- From: "Felice Vittoria" <[EMAIL PROTECTED]> To: "Jean-Michel Theriault" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 13, 2004 9:09 PM Subject: RE: [Nant-users] Need help with <mail task Jean-Michel, One way to do this is by running nant 2x. However, leave out the mail task out of the build but put it in it's own target That is, a simple BATCH file could look something like this: nant /f:somebuild.build buildall -l:build.log nant /f:somebuild.build sendemail -l:other.log Did that make sense? Felice -----Original Message----- From: Jean-Michel Theriault [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 1:59 PM To: [EMAIL PROTECTED] Subject: RE: [Nant-users] Need help with <mail task Hi all!! I'm getting this message from my log file. It's concerning the mail task. [mail] File 'T:\er\build\proj\build.log' NOT attached to message. Invalid mail attachment 'T:\er\build\proj\build.log'. I was wondering what does the " Invalid mail attachment " tag can tell me. Is it possible that it's because the file is being written to. If so, how can I send a file that will be written to till the end of the build process?? Jean Michel Thériault [EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users