JavaScript EditorFreeware javascript editor     Javascript code


Main Page

Previous Page
Next Page

Summary

In this chapter you've implemented a complete module for sending out newsletters to members who registered to receive them, either at initial registration time or later. The module sends out the e-mails from a background thread instead of the main thread used to process the page request, so that you don't risk page timeouts, and, above all, so that you don't leave the editor with a blank page that may last several minutes or more. To provide some feedback to the editor about the newsletter being sent, there's a second page that updates a progress bar and shows the updated status information every couple of seconds. Finally, end users can look at past newsletters listed in an archive page.

To implement all this, you've used advanced features such as multi-threaded programming, script call-backs, and the SmtpClient and MailMessage classes to compose and send e-mail messages. You've also seen other new features of ASP.NET such as asynchronous pages, which is a useful feature in many situations.

However, although this module works fine, there's always room for enhancements. Here are some suggestions for improvements you may wish to make:

In the last few chapters we've developed modules to strengthen the site-to-user communications, such as the polls module and this newsletter manager. In the next chapter you're going to implement a module to manage forums, which is an important form of user-to-user communication.


Previous Page
Next Page


JavaScript EditorFreeware javascript editor     Javascript code 
Bitcoin Dice Site . here