Coldfusion Email Parser
Posted on 2005-04-14
I am looking for some suggestions on what tags to use to create an email parser in Coldfusion.
I would like to do the following:
I have a mail script that sends information to an email address in the form of:
form_input_name1: data value1
form_input_name2: data value2
form_input_name3: data value3
I would like to write some Coldfusion code to check an email box and parse each email to discover where the email is from (it's sender address) and then get the data out of each line. Each email would obviously have the same layout (as far as form_input_name's go), with just the data values changing.
After an email has been parsed I will just use the CFMAIL tag to forward the email address on to its next home and then delete the email from the box on the server that I'm checking.
I would rate my CF coding skills at probably around intermediate but am unsure as to where to begin with this idea.
Thanks for your suggestions.