I have hybrid project of ASP Web Api and angular project similar to this one and I need to send emails from ApiControllers in it.
I like MvcMailer and I'd prefer to use that. I managed it to actually send emails. However, I'm not sure how to pass custom data to the view since I do not have access to ViewBag
or ViewData
in ApiController context.
Any help is appreciated.