Hi,
Am fairly new to vbscript, and was wondering what is the best way to do the following: Parse a log file that essentially is divided among sections. Each section has data that needs to be sent to an email address in that particular section. Here is the format of the data file which includes 2 sections:
XXXX
415-221-2422
Email: mjordan@toys.com
Company.com
101 United Center Way
Chicago, IL 86221
7/14/2004
EMAIL TEST CUSTOMER
Toys.com
1 main street
New York, NY 21232
This is a test that we received your order.
This is a verification email. Your order number is 1211. Thank you.
XXXX
510-222-1400
Email: spippen@houses.com.com
Company.com
101 United Center Way
Chicago, IL 86221
7/14/2004
EMAIL TEST CUSTOMER
Houses.com
77 D street
Portland, OR 76542
This is a test that we received your order.
This is a verification email. Your order number is 9255. Thank you.
XXXX
So, essentially, what I have is one long log file, with the delimiter of XXXX. Any information between the XXXX, I'd like to include in the email. Is this possible to parse to find the email address in each section, send it to that user, then include everything within the delimiter of XXXX that pertains to only that user in the email? What i'm struggling with is how to separate only the information between the delimiters for each email.
Thanks a lot for any hints and methods.
Am fairly new to vbscript, and was wondering what is the best way to do the following: Parse a log file that essentially is divided among sections. Each section has data that needs to be sent to an email address in that particular section. Here is the format of the data file which includes 2 sections:
XXXX
415-221-2422
Email: mjordan@toys.com
Company.com
101 United Center Way
Chicago, IL 86221
7/14/2004
EMAIL TEST CUSTOMER
Toys.com
1 main street
New York, NY 21232
This is a test that we received your order.
This is a verification email. Your order number is 1211. Thank you.
XXXX
510-222-1400
Email: spippen@houses.com.com
Company.com
101 United Center Way
Chicago, IL 86221
7/14/2004
EMAIL TEST CUSTOMER
Houses.com
77 D street
Portland, OR 76542
This is a test that we received your order.
This is a verification email. Your order number is 9255. Thank you.
XXXX
So, essentially, what I have is one long log file, with the delimiter of XXXX. Any information between the XXXX, I'd like to include in the email. Is this possible to parse to find the email address in each section, send it to that user, then include everything within the delimiter of XXXX that pertains to only that user in the email? What i'm struggling with is how to separate only the information between the delimiters for each email.
Thanks a lot for any hints and methods.