7

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

migrated from superuser.com Sep 15 '17 at 21:29

This question came from our site for computer enthusiasts and power users.

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

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 Sep 15 '17 at 17:11
  • 1
    Works for me in Gmail. I used "#" instead of "". – PJ Brunet Nov 16 '17 at 2:23
  • 1
    It works for me too. – Jack Barham Jan 13 '18 at 18:46
  • 1
    This was so clever. Worked like a charm! – Rbar Aug 20 '18 at 18:33
1

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