add headers to mail function to read html