title: Sending Emails with ActionMailer.Mvc in VB, Cannot Find View
body: <p>The error I get when I try to send an email is:</p>
  
  <blockquote>
    <p>NoViewsFoundException</p>
    
    <p>You must provide a view for this email.  Views should be named
    ~/Views/Email/VerificationEmail.html.vbhtml.txt.cshtml or
    ~/Views/Email/VerificationEmail.html.vbhtml.html.cshtml (or aspx for
    WebFormsViewEngine) depending on the format you wish to render.</p>
  </blockquote>
  
  <p>Error on line:</p>
  
  <p><code>Return Email("~/Views/Email/VerificationEmail.html.vbhtml", model)</code></p>
  
  <p><strong>Can emails not be sent in .vbhtml, must they be sent in .cshtml?  How can this work for VB?</strong></p>
  
  <p>Here is my code controller:</p>
  
  <pre><code>Imports ActionMailer.Net.Mvc
  
  Public Class EmailController
      Inherits MailerBase
  
      Public Function VerificationEmail(ByVal model As RegisterModel) As EmailResult
  
          [To].Add(model.Email)
          From = "me@my.org"
          Subject = "Thanks for registering with us!"
          Return Email("~/Views/Email/VerificationEmail.html.vbhtml", model)
  
      End Function
  
  End Class
  </code></pre>
  
  <p>Here is my view:</p>
  
  <pre><code>@modelType MyBlog.RegisterModel
  
  @Code
      Layout = Nothing
  End code
  
  Welcome to My Cool Site, @Model.UserName
  
  We need you to verify your email.  Click this nifty link to get verified!
  
  @Html.ActionLink("Verify", "Account", New With {.code = Model.Email})
  
  Thanks!
  </code></pre>