Unable To Get Css When Sending Email With Css
is there any way you can send an email from c# asp.net with a html page with css. Currently I am sending the email but when I open in gmail it does not capture the css included in
Solution 1:
Gmail removes the entire head portion of your email’s HTML. So, it will also remove any style elements. You need to inline your CSS, like this:
<body style="background-color:navy; color:white;font-family:Menulis;margin-left:40px;">
<div style="margin:0 auto;">...</div>
<img style="border-radius:5px;width:200px;height:300px;margin-right:200px;display:block;float:right;" src="https://..." />
</body>
Post a Comment for "Unable To Get Css When Sending Email With Css"