Hey all im looking to find a script that will allow me to copy an email header/bounce into a text area then parse through that and show the important information. Meaning the bounce message if its a fatal error things like that. If anyone can help me i would be apprechative
PHP analyze email headers
That will depend largely on how you are 'getting' the email to begin with.
Can you provide more information about what your data sources are, and what code (if any) you have for that already.
Thanks i am getting them from the email headers and the bounce back message that shows up. I don't have any code at the moment what i was trying to do failed horribly. I was writing it with regex to find and replace the words with what i wanted but it got way to long as all the MTA send different data in the headers and bounce message, lots of words matched what i wanted and the message came back garbled. I mainly need like a point in the direction to do this as regex will not work completely.
well, if you can post a sample or 2 of the data you are working with you can probably get plenty of regexp help here.
this class should get you started: Class: Parse Mail
Ok thanks that may actually be helpful.