Updated with php/js that allows for emails to be save in a file