nit: Please use `emailElement.innerHTML`.