- Creating and Sending eGreetings
- Preparing to Work
- Working with the Card Template
- Applying the Scrollbar
- Customizing the Scrollbar
- The eGreeting Interface
- Defining the Structure of the Database
- Using the LoadVars Object to Send Data
- Error Checking
- Setting Up and Testing the Email Program
- Displaying the Card for the Recipient
- Putting It All Together
Preparing to Work
To use this project as is, you'll need to be running Microsoft Internet Information Server (IIS) or PWS under Windows, have Microsoft Access installed, and store the files on the accompanying CD-ROM in a subdirectory of your Inetpub/wwwroot directory. Alternatively, you can use any other scripting and database combination (such as PHP and MySQL), but you will need to translate the functionality of the ASP scripts in this project into the scripting language of your choice.
You'll also need to have a program that sends mail and enables you to specify the email's sender, recipient, and message. This project uses ASPMail, but you can use whatever mail program is available on your server. This might require substituting sendit.asp with a script that can communicate with your alternative mail server.
-
Download and copy all files in 10_ECards to a directory under Inetpub/wwwroot. Check your IIS or PWS settings if you are not sure.
Set up a DSN connection for greetings.mdb, the Access database you just copied into a directory under your webroot. If you are using Windows 2000, navigate to Control Panel > Administrative Tools Folder > ODBC Settings. The DSN name used in the script files is greetingsDSN.
With the accompanying downloaded files copied to the webroot and the data source connection set up, you've completed the prep work. Next you will examine the template used to create the individual greeting cards already in the projectcard01.fla and card02.flaand you will make a new greeting card for the project.