tags:

views:

114

answers:

1

Hi, Can anyone please suggest me how we could configure the sending of mails through nant.I had even gone through the link but i was unsucessfull.

thanks and regards maddy

A: 

Something like this is what you would use.

<target name="sendmail">
    <mail
        from=“[email protected]“
        tolist=“${distribution_list}“
        subject="${mailsubject}" 
        mailhost="${smtpServer}"
        message="${mailbody}"
        verbose="true"
     >
        <attachments>
            <include name="${buildroot}/build.log" />
        </attachments>
    </mail>
</target>
Andrew Siemer
Thanks a lot andrew..Its working fine now