Where should I implement e-mail logic in N-tier application?

301 views Asked by At

I'm a student working on a project with an N-tier structure (a web server application with ASP.NET).

I currently have three layers: * Presentation * Business logic * Data access (communication with database)

I want to implement e-mail logic (in order to send e-mail to users) but I'm not sure in which layer it would be appropriate.

Any suggestions from you experienced developers out there? Thank you!

1

There are 1 answers

0
gpanagopoulos On BEST ANSWER

Business Logic layer should be used. You should try and keep your presentation layer as much logic free as possible.