Lab 2: Developing the Message Body for Delivery

In this lab, you will develop a personalized Active Server Page (ASP) page that provides a personalized message body to Direct Mailer. There are multiple methods of developing content for your direct mail message. For information about Direct Mailer message formats, see Message Formats.

For the purposes of this tutorial, you will use the file ServiceReminder.asp to create the Direct Mail content. This ASP file will contain a personalized e-mail message telling your new users about products the Adventure-Works Company is adding to their Web site. The ASP file also includes an opt-out link so that the recipient can request to be removed from the mailing list.

To develop a personalized Active Server Page (ASP) page

  1. In <drive letter>:Inetpub\wwwroot\retail, open the ServiceReminder.asp file in Notepad to modify your ASP page.

  2. In the ServiceReminder.asp page, do the following:

    Change this To this
    From: E-mail Notifier From: Adventure-Works
    Subject: New product notice Subject: New customer notice.

    Ee799107.note(en-US,CS.20).gifNote

    • In this ASP page, the UserID is retrieved from the AuthManager object as strUserID = objAuthManager.GetUserID(1). Direct Mailer receives the authentication cookie while accessing the ASP file. The UserObject profile is retrieved from the profile service.
  3. Save and close the ASP file.

Copyright © 2005 Microsoft Corporation.
All rights reserved.