I am trying to embed an email image in MVCMailer. The Github MvcMailer Step by Step Guide does provide a solution as shown below:
STEP BY STEP GUIDE:
//Place this in the View:
@Html.InlineImage("logo", "Company Logo")
//Place this in the mailer:
var resources = new Dictionary<string, string>();
resources["logo"] = logoPath;
PopulateBody(mailMessage, "WelcomeMessage", resources);
My problem is, the view does not recognize the @Html.InlineImage
. It recognizes other html helpers, just not "InlineImage". In fact, it never comes in intellisense when I type @Html
.
I think that this is not supported in MVC 4. Can anyone point me in the right direction and tell me what I need to do to get this working?