Razor does not work in html email template; This produces the image:
*<img style="border: 0;-ms-interpolation-mode: bicubic;display: block;max-width: 600px" src="http://xxx.xx.uk/off-line/email-template-images/banner.jpg" alt="http://xxxx.xx.uk/off-line/email-template-images/banner.jpg" width="600" height="229">*
This does not:
*<img style="border: 0;-ms-interpolation-mode: bicubic;display: block;max-width: 600px" src="@ViewBag.imageurl" alt="http://xxxx.xx.uk/off-line/email-template-images/banner.jpg" width="600" height="229">*
Note razor in SRC. How can I render the image using a reference from the controller?
ViewBag. The whole point is to pass a strongly-typedEmailsubclass to the view with whatever data you need on it.