Bert Willekens Bert Willekens - 25 days ago 14
ASP.NET (C#) Question

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

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!

Answer Source

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