Webica Web Page
Copyright protected.© 1999-2009 Webica Ltd. All rights reserved.
Webica Ltd is a privately owned independent U.K Company No. 3832693 .
Website signifies your agreement to the Terms of Use. Acknowledgement Microsoft™ is the trademark of Microsoft Corporation Inc.
 
 
2.0
 
BROWSE E-CHAPTERS
Back to top
back to top
In the first part I showed you the basics of how to send one email, now we need to make it go through the list one by one emailing each person, organisation etc. There's a bit more to it than just looping through a list!

First lets consider the list in more detail, the three critical pieces of information sent in an email are the To (the recipients email address), the Subject and the Body parts, see image here.

In practice the list is most likely to be supplied to you in a delimited text file with one record per line.

The easiest option is to use the DTS (Data Transfer Services) utility such as the one with SQL Server Enterprise Manager, or an equivalent utility with your preferred database which allows you to import a new database table.

Now we're ready to automate the process of stepping through the list of suspects ( as they are called in marketing speak.

Once you've got the list into your database you're ready to build a more advanced verion of the code used in the Send buttons click event shown in the introduction.

One final step before we dive into some .NET code again is to add a new column to your database table to hold the body (all the html, xml, graphics, hyperlinks etc that you want to appear in the recipiants email).





























































In database design terms you could also add a new table which would hold the body text and do a join to that table in your query. This would mean you would not have to modify the table holding the list, either way it's best to make the database column that holds the Body of type ntext.

Of course you may have to experiement a little with the layout.
You'll need to make a few dry runs at this, all we need to do is to get it to work for 3 or more names in the list (table) and we will assume it will work for all, with a tiny bit of tunning not to overload the SMTP server.

The logic is fairly straight forward, we want to read a record from the database, pass it to a send method that accepts each column (To, Subject, Body) as input parameters which then sends one email. Even though the mail server will queue requests to send, we could be gental and wait, perhaps 1 second before we make the next call to the send method, and so on untill we have passed all the records in the list.

In this scenario the email's body does not contain a personlised greeting, I'll cover that later.
&
Web Applications Direct email marketing software requirements - Part II
 
Listing All Titles for Web Applications
To view please select a title from the list below
Automatically reactivated date 010021010
Silverlight Skill Sets and Tool Sets
Webica.NET successful re-launch
Quick Start Silverlight for ASP.NET
State Events and Data in .NET based XAML
Visual Studio 2005 Web projects in 2008
JavaScript Intellisense, editing and Debugging in Visual Studio NET
Global.ascx missing from VS2005 .NET 2.0 Web Applications
Visual Studio,NET 2005 now prides Intellisense in the Debugger Windows
asp.net Web applications
asp.net Web Applications
Holidays Web Apps and the online experience.
Fixed Assets Web Applications using.NET
Quick introduction and perspective on Silverlight from Microsoft
On-line I.T. Skills Quiz Engine planned
Relational Database Engines
Bank sample built using Content Management System CMS2002
Asp.net ajax and the XMLHttpRequest Object
asp.net data entry
Direct email marketing software requirements - Introduction to the Basics
asp.net rad
asp.net grids
Collections in .NET
Constraints, Code Access and modifyers
Bookmark Management Improvements
Garbage Collection, Dispose, Finalize
Global Interfaces as configured property setting
Web Browsers on mobile phones, is the Nokia N95 or N800 a serious tool.
Automatic Recovery in Visual Studio 2005
asp.net web grids
asp.net control
Auto using feature now in Visual Studio 2005
asp.net web control
Database Architecture
Code branching makes testing application changes easier and safer.
Capital Account Web Applications using .NET
Current liability Web Applications using.NET
Long term loan Web Applications using.NET
Powerful PC Software processing text strings
Free relational database server supported by Visual Sudio 2005
Direct email marketing software requirements - Part II
.NET Exception Classes, ASP.NET and Web Applications
Load Testing for Web Applications
Webica.NET, built by a programmer for programmers. Where do you start
C.NET Reference Types
Web Hosting and distributed Web Application platforms
Improved Web Publishing Management
New User Interface for managing Assemblies in VS2005
Single and multiple file assemblies
(ERP) Equipment Resources as part of a Quote for a Job
ERP Job Equipment Setup and Definition
State Management for ASP.NET Web Applications
Additional techniques and issues related to Controlling Web advertisements
Nine ways to maintain state in ASP.NET 2.0 Web Applications
How ERP, CRM and MIS applications Access a Database with ADO.NET
The orginal Multimedia Online player for T.V. Video and Music
Enterprise Resource Planning software (ERP) Quoting for a Job
Enterprise Resource Planning (ERP) software doing the Job!
Introduction to Software Design Patterns
ASP.NET 2.0 Converts 32-bit to 64-bit Web Aplications
ASP.NET 2.0 64-bit Debugger Support
ASP.NET 2.0 has over 50 new Web Form Controls.
ASP.NET 2.0 Caching and Cache dependencies with SQL2005
FIFA European Football EURO competition uses XML Feeds
Stock brokering, brokerage Market Web Software Framework.
Early ASP.NET Portal Content Management Systems
Keycost.com measure track report and control spending outside the office
Enterprise Resource Planning (ERP) Software Solutions - Financials.
Mesothelioma lawyers Cancer related services contrasted.
Creating Content for the Physics Demo Site by John Mulkearns BSc PGCE
Sixty Four Web Sites in One. 64-bit web Sites have arrived.
Scripting an ASP.NET Textbox Web Server Control
Rebuild All 1 succeeded, 0 failed, 0 skipped
Multithreading – making Asynch Calls
Programming with Csharp and .NET
Database Web Application
asp.net programming
asp.net grid
asp.net datagrid
asp.net grid control
asp.net freelancer
asp.net component
asp.net generator
asp.net
Enterprise Resource Planning Software Architecture, is it SOA yet.
Loosely coupled Enterprise Resource Planning Software.
Richards Application Test demo I
configured property setting
Scalability and Performance Part II
Data Types in C.NET
C.NET language Operators
Managed Memory Stack and Value Types
temp placeholder
Visual Studio has atomic style code checkins for .NET
Unit Testing via Reflection
Contact
Google
WWW WEBICA.NET
Search all Google Indexed pages on Webica.net
ASP.NET C# quiz engine planned
International Headline News
For those who know that .NET and the WEB can be beyound your reach, but that they remain within your grasp.