I am trying to read chunks of data from a file and emailing parts of it to certain users. I can get the email done but I can't figure out how to get my data out!<br>
I have markers in a flat file to signify the beginning of my data, the username I'll mail to and then a block of data.<br>
<br>
I need to start at ##BEGIN, get the username from #NAME=mailuser, and then pipe all the data between #NAME=mailuser and ##END into a mail message, then start over until I reach the end of my file.<br>
<br>
Any help is welcomed!!<br>
Thanks<br>
<br>
My data file is like so:<br>
<br>
##BEGIN<br>
#NAME=mailuser<br>
<br>
Bunch of data goes here<br>
and here.. this is still mailsuers' data<br>
<br>
##END<br>
##BEGIN<br>
#NAME=mailuser2<br>
<br>
This is where I put mailusers2's data<br>
etc..etc..<br>
<br>
##END
I have markers in a flat file to signify the beginning of my data, the username I'll mail to and then a block of data.<br>
<br>
I need to start at ##BEGIN, get the username from #NAME=mailuser, and then pipe all the data between #NAME=mailuser and ##END into a mail message, then start over until I reach the end of my file.<br>
<br>
Any help is welcomed!!<br>
Thanks<br>
<br>
My data file is like so:<br>
<br>
##BEGIN<br>
#NAME=mailuser<br>
<br>
Bunch of data goes here<br>
and here.. this is still mailsuers' data<br>
<br>
##END<br>
##BEGIN<br>
#NAME=mailuser2<br>
<br>
This is where I put mailusers2's data<br>
etc..etc..<br>
<br>
##END