-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using MvcMailer with a service layer? #7
Comments
Interesting point. I will see if I can help you about this. First Sent from my iPhone On 2011-03-27, at 5:24 PM, chobo2
|
I'm migrating to MVCMailer with a mail-intensive project - would love to see if anything has come from this exploration. thx! |
I wish I could fix this the way I wanted to. But looks like the best bet And if you need to hit it on a scheduled task, expose a WCF endpoint for Sohan On Tue, Nov 15, 2011 at 12:00 PM, justSteve <
|
Could you do something like use the RazorEngine project (on github also), to udpate the way MvcMailer does templating? |
I was thinking about it. It would make mailing independent of ASP.Net MVC Sohan On Tue, Jan 15, 2013 at 3:02 PM, tafs7 notifications@github.com wrote:
|
Hi
I am very interested in using your library as I think it is cool that I could use views to make good looking emails.
I however don't know how to use it with a service layer. I currently have 2 projects one with my mvc 3 code and one for my repos and service layers.
Right now I need to do this. Controller extracts ViewModel data and passes it to service layer. Service layer does some business logic and depending on what options where chosen sends a email.
I want to send the email but use MvcMailer. However that probably would mean I need to add a reference to MVC in my service layer project. I do not want to do this as I think the service layer and repos should know nothing about MVC. I do this with my VM and use automapper and map them to a domain object and send it to the service layers as I don't want to have selectLists or MVC depended code coming along.
How could I use MvcMailer and still respect the boundaries of the service layer?
Thanks
The text was updated successfully, but these errors were encountered: