tryed to get the xml to output email but failed