Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grab lines of a text file

Status
Not open for further replies.

gmagerr

Technical User
Aug 11, 2001
323
US
Hi all,

I have a text file that has many entries. Each entry is exactly 4 rows. Each 4 rows is seperated by a blank row. So the file looks like this

Issued Request ID: 0x286 (646)
Certificate Expiration Date: 3/28/2009 9:35 AM
User Principal Name: "someone@company.com"
Certificate Template: "EFS"

I'd like to loop through these entries, grab the email address, and send an email to the address with the information in the body of the email. How would i do this?

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top