Enabled email permission via html instead of Javascript code