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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple PHP Program to Capture E Mail Attachments

Status
Not open for further replies.

candeos

Programmer
Sep 3, 2002
11
US
Thanks in advance for the help

My daughters dance company has seen a drop in attendance for their Nutcracker Performance and have asked me to do am mailing. The problem is that they have all of their customer info stored in a series of e mail messages as attachments ( 800+) The info is stored in a comma delimited file called order.txt I downloaded the INBOX file and the attachments are encoded in base 64. i successfully was able to decode the attachment.

The file needs to

1.) read in the inbox file ( text file)
2.) Search for "order.txt" and then again ( the filename is repeated twice.
3.) copy the information following it ( there are 2 CR then the base64 info
4.) Convert it to data
5.) search for a CR
6.) Copy the info followg to the next CR and append it to a text file allorders.txt

Any help would be much appreciated. If you live in the Boston area, I'll be happy to get you tickets to the performance...

Thanks

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top