Answer the question
In order to leave comments, you need to log in
How to send HTML/CSS letter to email?
Hello.
I'm trying to send an HTML email to Gmail (via the MailKit C# library). Everything goes and everything arrives well. But the text comes in the form of HTML markup. That is, the markup when receiving a letter is not processed.
I send the following HTML code (under the spoiler):
<html>
<head>
<style>
.colored {
color: blue;
}
#body {
font-size: 14px;
}
</style>
</head>
<body>
<div id='body'>
<p>Hi Pierce,</p>
<p class='colored'>This text is blue.</p=>
<p>Jerry</p>
</div>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question