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.