C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Bulk mails in 3-tier architecture


Posted Date: 20 Aug 2008      Total Responses: 3

Posted By: anjali       Member Level: Silver     Points: 1


Hi Friends,

i need to send bulk mails to the users.
the mail ids i'm getting from the database.

in general, i completed the task.

but i want it in a 3-tier architecture model.

in which model what to write.

in my application i have a function sendmail() after getting the mails from database.

now, let me now how to implement this is 3-tier architecture.

Thanks in Advance




Responses

Author: ANIL PANDEY    20 Aug 2008Member Level: DiamondRating:     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 2008Member Level: GoldRating:     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 2008Member Level: SilverRating:     Points: 1
Thanks for your replies anil & Pradipta
now, I got some idea


Post Reply
You must Sign In to post a response.
Next : Preventing user to open same site from same system
Previous : Component Art in .NET 2.0
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use