Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 890
Alex Hope O'Connor Avatar asked Oct 07 '12 09:10

Alex Hope O'Connor


1 Answers

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.

like image 64
Alex Hope O'Connor Avatar answered Oct 14 '22 07:10

Alex Hope O'Connor