Note that there are some explanatory texts on larger screens.

plurals
  1. POSending Text and HTML Emails - Why is Gmail Always Picking Text Version?
    primarykey
    data
    text
    <p>I'm sending some emails from my ASP.NET MVC application, using <a href="http://actionmailer.net/" rel="nofollow">ActionMailer.NET</a>.</p> <p>Now, part of this process is sending both HTML <strong>and</strong> text versions of the message, to support text-only clients.</p> <p>But what i'm seeing is that GMail is <strong>always</strong> picking the text version. </p> <p>I tried Yahoo, and Yahoo is picking the HTML version correctly.</p> <p>I tried dumbing down my HTML to nothing but a <code>&lt;h1&gt;</code> and a <code>&lt;span&gt;</code> tag, and GMail still picked the text version, which means there isn't a problem with the content of the HTML.</p> <p>Is this expected behaviour?</p> <p>Because when i send <strong>only the HTML version</strong>, GMail will show the HTML version correctly.</p> <p>I've set the meta-tags in the HTML as follows:</p> <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; </code></pre> <p>Has anyone else encountered this behaviour, and found a solution?</p> <p>Because as it stands, i'll probably have to send <strong>only</strong> the HTML version, so that GMail will render it, as too many of our clients use GMail.</p> <p>Here's an example of basic HTML i'm trying to send:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;This is the heading&lt;/h1&gt; &lt;span&gt;This is some text.&lt;/span&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>And GMail won't even allow that.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload