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
    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.


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
    Aug 8, 2018 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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