added email header and also edited header to make it work