Eric,

Attachments should be specified as a fileset (see
http://nant.sourceforge.net/nightly/help/tasks/mail.html). This was changed
quite a while ago.

Use this instead :

<mail
    from="[EMAIL PROTECTED]"
    tolist="[EMAIL PROTECTED]"
    subject="Daily Build for ${curDate} at ${curTime} was ${status}"
    message="See attached file for build log details."
    verbose="true"
    mailhost="my.mailHost">
    <attachments>
        <includes="${logfile}" />
    </attachments>
</mail>

Hope this helps,

Gert


----- Original Message ----- 
From: "Eric Fetzer" <[EMAIL PROTECTED]>
To: "NAnt Developers" <[EMAIL PROTECTED]>
Sent: Monday, March 22, 2004 9:54 PM
Subject: [nant-dev] Mail Task


> I am unable to get attachments to work with the mail
> task.  Any clues?
>
> <target name="sendEmail">
>   <record name="${logfile}" action="Close"/>
>   <mail
>     from="[EMAIL PROTECTED]"
>       tolist="[EMAIL PROTECTED]"
>       subject="Daily Build for ${curDate} at
> ${curTime} was ${status}"
>       message="See attached file for build log
> details."
>       verbose="true"
>       attachments="${logfile}"
>       mailhost="my.mailHost"/>
>   </target>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to