css - text-decoration:none formatting not working when sending HTML emails with Outlook 2007 -
if attempt send following html email outlook 2007 hyperlink shows when receive in gmail. however, sending online test service hyperlink not show. if reply gmail outlook 2007 client, outlook shows email without hyperlink, intended.
it seems me on outgoing email outlook attaching own stylesheet overriding this. there way add code stop this? i've tried important! trick no avail.
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body> <div> <a style="text-decoration:none;" href="www.example.com"><font color="#e4480d"><span style='text-decoration:none;text-underline:none'>www.example.com</span></font></a> </div> </body> </html>
outlook processes html before sending out, alter code pretty heavily in fact. if inspect element in chrome on the email in gmail should see there sorts of new tags classes "msonormal". throw <a>
tag in there too.
you'll notice when receive plain text link in outlook same blue hyperlink. it's same thing, it's putting <a>
around link inside span
, font
tags , overriding them.
my (partial) solution see if there's class
on <a>
, text-decoration:none
in style tag on class. since gmail doesn't support <style>
or linked stylesheets, think you're out of luck if want customize link colors , still send outlook :(
there's option of not sending outlook though! use domain's imap settings , use gmail's interface send , receive mail. see below:
https://support.google.com/mail/troubleshooter/1668960?hl=en#ts=1665018,1665137,2769074
Comments
Post a Comment