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

_Layout not working #118

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi, even when changing my master layout to another name, then the PopulateBody method fails. Otherwise, UserMailer is trying to use another file named _Layout in another directory. Please help! Thanks in advance!

jamesbascle commented 10 years ago

@janessaallen Would recommend using fully qualified pathnames for your action/view/partialview names and see if this works.

An option is the T4MVC text templates helps greatly with this as it will auto generate a strongly typed group of objects, all hidden under 2 static MVC/Links objects that are proxys for these fully qualified paths.