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
views:
26answers:
1
+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
2010-08-23 11:53:19
I did it in the similar way, but email is not getting triggered to the To list present in the <mail/> tag
sandy
2010-08-24 11:28:14
@sandy - update your question with that part of your script, perhaps we can spot the problem.
Peter Lillevold
2010-08-24 11:51:09