By 2021, the best for me would be:
<a href='#' style='text-decoration: none; color:#000000' name='myname'>x@somemail.com</a>
Explanation
After trying different services like Gmail, Outlook 365, Mailinator, and MyTrashMail, the results are:
• <a>
- wrapping the email into anchor is essential, as raugfer pointed
• href='#'
is necessary for Outlook. Linking to a fake anchor disables following the link.
• text-decoration: none, color:#000000
removes underline and changes color from blue link color to natural text color. For those who want not only to disable the link but make its appearance as usual text.
• name='myname'
wouldn't harm, however, I haven't noticed its necessity.
Any javascript should be avoided, it won't pass Gmail. E.g. onClick="return false;"
, <script>...</script>
.
If you want to change the cursor to default, cursor: default
or cursor: auto
won't help. For Gmail only, do without href='#'
Using <span>
or <myspan>
works for Gmail as Prince Mishra stated, but it doesn't help in all the services (in Outlook, for instance).