Jean-Michel,
 
Body files should be specified using the fileset element named <files>. See http://nant.sourceforge.net/nightly/help/tasks/mail.html for more information, and an example.
 
Hope this helps,
 
Gert
----- Original Message -----
Sent: Friday, June 25, 2004 5:07 PM
Subject: [Nant-users] Need help with <mail task

When I use the <mail task I’m able to receive the email with the subjet correctly but I can’t seem to get the file for the body to show. Here’s my code. I just need an exemple with the body(fileset)  that works.

 

<mail if="${sys.env.MailDev}"

                                    from="[EMAIL PROTECTED]"

                                    tolist="${sys.env.MailDevTo}"

                                    mailhost="exchange4.cactus.ca"

                                    subject="[${sys.env.ProjectCode}] ${Email.SubjectVerbage}   ${Project.Build.Version}!??????"

                                    format="Html">

                                                                       

                                    <fileset>

                                    <includes name="${nant.project.basedir}\${sys.env.ProjectCode}\ResultDev.htm" />

                                    </fileset>  

 </mail>

 

 

Thank you !

    Jean Michel Thériault

      [EMAIL PROTECTED]

 

<<image004.jpg>>

Reply via email to