Search code examples
c#.net-4.0asp.net-mvc-4mvcmailer

MvcMailer Send() extension method missing in ASP.Net MVC 4


After upgrading one of my websites to MVC 4 and upgrade all my packages in NuGet I seem to have lost the Send() extension method for the MvcMailer package from NuGet. I have not made any code changes other then those necessary to upgrade the project and I have:

using Mvc.Mailer;

At the top of my code file.

Can someone please tell me what may be going on here?


Solution

  • Ok I figured it out after looking at this post: https://github.com/smsohan/MvcMailer/issues/68

    Basically they have removed the extension method from MailMessage and added a new class called MvcMailMessage which your mailer should return instead.