| Author: ANIL PANDEY 20 Aug 2008 | Member Level: Diamond | Rating: Points: 6 |
Hi,
3 tier is normally used for large application because there we have to write same code multiple times so to remove the lines of code and for a higher security reason we use 3 tier architecture.
If u are making this for only a Bulk mail u need not to Create in 3 tier but then also if u want then create 3 2 DLL
1 business layer 2. Data access layer
Call the business layer function from Top layer or code behind
Data access layer function from Business layer and
execute the command in data access layer....
This will make a 3 tier.
For layer use the Class library application
hope u Got the idea.
Regards Anil
|
| Author: pradipta 20 Aug 2008 | Member Level: Gold | Rating: Points: 4 |
You have to write this logic in Business logic or Service Layer.Once you get the Email Ids from Data Access Layer call a method in Business Logic(BL) layer to send the Email.You can create a DTO(A class which will have all the properties like SMTP Server,To,From ,CC, BCC,Subject etc) to pass the detail info to BL.
Note:You can also use a Command Pattern to execute a SendEmail Command.
|
| Author: anjali 20 Aug 2008 | Member Level: Silver | Rating: Points: 1 |
Thanks for your replies anil & Pradipta now, I got some idea
|