Hi Bob.

There is a mail task:
   http://nant.sourceforge.net/release/latest/help/tasks/mail.html

Here is the target I'm using to send email to a list of users in the
file ${emailusers}:

<target name="mail">
       <loadfile file="${emailusers}" property="mailusers"
failonerror="false" />
            <if test="${not property::exists('mailusers')}"
verbose="true" failonerror="false">
                <echo message="WARNING:  Failed to create tolist for
mail.  Using default." />
                <property name="mailusers" value="[EMAIL PROTECTED]" />
            </if>
       <echo message="Sending mail to: ${mailusers}" />
       <mail
            failonerror="false"
            from="[EMAIL PROTECTED]"
            tolist="${mailusers}"
            bcclist="[EMAIL PROTECTED]"
            format="Html"
            subject="${mailsubject}"
            mailhost="smtp.company.com">
            <files>
               <include name="${mailbody}" />
            </files>
        </mail>
    </target>

On 1/8/07, Bob Archer <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Ok,
>
>
>
> I hope I'm not missing a send email task… Is there a way to have Nant send
> email when not using the MailLogger? I am using CC.net which uses the
> XMLLogger.
>
>
>
> I basically want to send the email to a list of users in a text file.
>
>
>
> Any help?
>
>
>
> Thanks,
>
> BOb
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to