smsohan/MvcMailer — pull request #67 by bogdan-litescu (2012-10-13 20:54:38+00:00)
Title: Let the view set the subject

I needed to specify the subject of the email in the view rather than hardcoding it in the code or store it separately. This can be extended so more data can come from view such as recipients, reply tos, html body, etc.

Here's the usage:

@{
TempData["Subject"] = string.Format("A new post has been added to {0}", Model.Name);
}