0 votes

Hello,

I am using the default cade to reply to an email.

This is the Code

ReplyBuilder rb = original.Reply();
rb.HtmlReplyTemplate = @"<!DOCTYPE html PUBLIC ""-//W3C//DTD   ...">
    <html>
    <head>
        <meta http-equiv=""Content-Type"" content=""text/html; .../>
        <title>[Subject]</title>
    </head>
    <body>
            [Html]
    <br /><br />
    On [Original.Date] [Original.Sender.Name] wrote:
    <blockquote style=""margin-left: 1em; padding-left: 1em; ..."">
    [QuoteHtml]
    </blockquote>
    </body>
</html>";

But When I change this code a little bit for example, I add

<div style="backgroud color, width ann etc....">
[Html]
</div>

into a DIV along some properties like background color, width etc..

it does not work and show all html in replied messaged. Can you please tell me how can I edit it according to my requirements.

thank you

by (850 points)

1 Answer

0 votes

Does the email you send contain the modified HTML or not?

Most email clients don't support modern html, and css. They may also ignore background color, font sizes.

Consider using tables and basic html, all css should be inline.

by (279k points)
edited by
yes. All modified HTML is included as it is and also the default HTML does not work anymore.
Then the problem is not related to Mail.dll. It is the client that is ignoring these attributes.
...