title: MVC Mailer layout is not rendering any html other thatn the RenderBody method
body: <p>Hi I am using MVC Mailer to manage creating and sending emails in my application. It will create and send the email fine but any html I insert inside the body in the layout is not in the email.</p>
  
  <p><strong>Mailer</strong></p>
  
  <pre><code>public class Mailer : MailerBase, IMailer
  {
      public aMailer()
      {
          MasterName = "_EmailLayout";
      }
  
      public virtual MvcMailMessage RequestAccess(RequestAccessViewModel viewmodel)
      {
          ViewData.Model = viewmodel;
  
          return Populate(x =&gt;
          {
              x.Subject = "RequestAccess for Data";
              x.ViewName = "RequestAccess";
              x.To.Add("AppTeam@groups.hp.com");
              x.From = new MailAddress(viewmodel.Email);
          });
      }
  }
  </code></pre>
  
  <p>I am setting it to use _EmailLayout here, I cahnged the name after seeing that there was an issue with naming it _Layout because it would conflict with any other files named _Layout.</p>
  
  <p><strong>_EmailLayout</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Mailer&lt;/h1&gt;
      @RenderBody()
  
      Thanks
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>The contents of the H1 tag or "Thanks" are not in the email</p>
  
  <p><strong>Access.cshtml</strong></p>
  
  <pre><code>&lt;h3&gt;"This is a Application email." &lt;/h3&gt;
  &lt;p&gt;@Model.Message&lt;/p&gt;
  &lt;br/&gt;
  &lt;p&gt;Regards&lt;/p&gt;
  &lt;p&gt;@Model.Name&lt;/p&gt;
  &lt;p&gt;Business Area: @Model.BusinessArea&lt;/p&gt;
  </code></pre>
  
  <p><strong>Email Source</strong></p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=us-ascii"&gt;&lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;p&gt; Hi jeff test,&lt;/p&gt;
      &lt;br&gt;
      &lt;p&gt;Thank you for your enquiry about the Application.&lt;/p&gt;
      &lt;br&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Has anyone come across this issue before? When I debug my application I can see that it is going into the _EmailLayout but I don't know why the HTML in that files is not rendered. </p>