smsohan / MvcMailer

A Mailer for ASP.Net MVC that forms the Email Body using MVC Views (Razor etc.) following Ruby on Rails ActionMailer style
MIT License
585 stars 176 forks source link

MvcMailer 4.0 does not contain a definition for 'Send' and no extension method 'Send' #68

Closed leniel closed 11 years ago

leniel commented 11 years ago

Hi,

In my ASP.NET MVC 4 app I just updated the NuGet package to v. 4.0 and now I get this error message:

Error 'System.Net.Mail.MailMessage' does not contain a definition for 'Send' and no extension method 'Send' accepting a first argument of type 'System.Net.Mail.MailMessage' could be found (are you missing a using directive or an assembly reference?)

I do have a using Mvc.Mailer; in my controller.

Is something missing in the new NuGet package? I ask this because you made an overall update according to #62.

smsohan commented 11 years ago

Please use the MvcMailMessage object instead.

Sohan http://smsohan.com skype:smsohan | gtalk:sohan39 | cell: 403-714-2673

On Mon, Oct 15, 2012 at 2:56 PM, Leniel Macaferi notifications@github.comwrote:

Hi,

I just updated the NuGet package to v. 4.0 and now I get this error message:


'Send' and no extension method 'Send' accepting a first argument of type
'System.Net.Mail.MailMessage' could be found (are you missing a using
directive or an assembly reference?)

I do have a `using Mvc.Mailer;` in my controller.

Is something missing in the new NuGet package?

 —
Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/68.
leniel commented 11 years ago

Oh... nice Sohan. Works great now!

I was almost regenerating my mailers to see if they would be created differently.

Now I see that the MailerBase.Populate method returns a MvcMailMessage instead of MailMessage.

Thanks for the awesome library.

All the best,

Leniel

smsohan commented 11 years ago

Thanks Leniel, good to know its working.

Sohan http://smsohan.com skype:smsohan | gtalk:sohan39 | cell: 403-714-2673

On Mon, Oct 15, 2012 at 3:12 PM, Leniel Macaferi notifications@github.comwrote:

Oh... nice Sohan. Works great now!

I was almost regenerating my mailers to see if they would be created differently.

Now I see that the MailerBase.Populatemethod returns aMvcMailMessageinstead ofMailMessage .

Thanks for the awesome library.

All the best,

Leniel

— Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/68#issuecomment-9461836.