I have a very basic question however the solution might be somewhat complex.
- How are website devs sending out e-mails such as forgot password links, registration messages, and/or any other notifictions that need to be sent.
- Are developers storing the messages in SQL server, a seperate class, XML??
I am using the Onion model and my SMTP Interface is in app.core however my base class for sending mail is located in infrastructure.backends. I dont’t want my application services be dependant on backends, not sure if this is right wrong or me being OCD..
I am using Ninject as my IOC/DI.
Slightly modified from a post I found, this seems to be the right way to roll. At least it is a start.
public interface IViewMailer
{
string RenderPartialViewToString(string viewName, object model, ControllerContext controllerContext);
}