tags:

views:

26

answers:

1

Hi , I have a below requirement to be done using nant scripting 1) Read the text file line by line and split the line 2) Each line should be sent as an email to the concerned team

+2  A: 

Using the <foreach /> and <mail /> tasks. Here's a quick snippet from the excellent NAnt documentation:

<foreach item="Line" in="yourfile.txt" delim="," property="x,y">
    <mail message="Read pair ${x}=${y}" />
</foreach>
Peter Lillevold
I did it in the similar way, but email is not getting triggered to the To list present in the <mail/> tag
sandy
@sandy - update your question with that part of your script, perhaps we can spot the problem.
Peter Lillevold