When Gmail detects an address within the text of an email, it automatically converts that address into a link to Google Maps.

(I think this "feature" must be new because it hadn't happened in the past.)

I'm using Active Campaign to send emails to prospective clients, and the footer of the email contains a mailing address (which I think is required due to spam laws).

Gmail users who receive my emails see the mailing address in the footer as a blue hyperlink, which distracts from the main content of my emails.

I already know about this trick for preventing Gmail from converting email addresses into links.

How can I ensure that Gmail doesn't mess with the formatting of my mailing address text?

I just want it to be gray text (and not link to anything).

  • I tried wrapping the address in <code></code> or <kbd></kbd> HTML tags, but those didn't help.
    – Ryan
    Commented Sep 15, 2017 at 16:31

2 Answers 2


The following approach seems to work!

<a href="" style="text-decoration:none;color: rgba(227,227,227,0.5);">%SENDER-INFO-SINGLELINE%</a>

Basically, I'm now preemptively making the address into a link, but it's a link to nowhere (href=""), and its underlining is removed (text-decoration:none;).

I adapted an answer I found here from Abby Wentzel.

  • 1
    I'm curious to hear whether my question and answer here helps anyone else.
    – Ryan
    Commented Sep 15, 2017 at 17:11
  • 1
    Works for me in Gmail. I used "#" instead of "".
    – Jay Brunet
    Commented Nov 16, 2017 at 2:23
  • 1
    It works for me too. Commented Jan 13, 2018 at 18:46
  • 1
    This was so clever. Worked like a charm!
    – Rbar
    Commented Aug 20, 2018 at 18:33
  • webapps.stackexchange.com/users/233434/excrispy recommends adding pointer-events: none; to the style to remove the hand cursor (at webapps.stackexchange.com/a/136671/27487 ). Adding cursor: pointer; is another idea.
    – Ryan
    Commented Nov 28, 2019 at 14:13

Although the <a> tag Ryan provided works, a basic <span> tag seems to work as well in the emails I tested.

  • I test with <span>address</span> and it is not working for me
    – shakaran
    Commented Aug 8, 2018 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.