Direct Mailer Cannot Process Configured Template

ID: Q216245


The information in this article applies to:


SYMPTOMS

The incorrect configuration of the mail template may cause a mailing to fail. The following status message is sent to the status account configured in Direct Mail:

----------
From: msgbldsvc@SERVER
Sent: Tuesday, January 26, 1999 10:35 AM
To: user@company.com
Subject: Mailing Notification (Please don't reply to this mail)

The "Example" mailing encountered errors in processing which prevented the delivery of one or more messages. 4 out of 4 messages have been processed (0 have been successfully sent). 1 messages failed due to errors in retrieving or processing template. 0 messages failed due to errors in retrieving attachments. 0 messages failed due to SMTP errors. 0 messages failed due to other errors. See Logs (msgbldsvc<datetime>.log, msgbldsvc.iwl) for details of errors. Time started: 1-26-1999 10:35:57.
The log file (MSGBLDSVC1990126.LOG) will contain the following error:
3 26-Jan-1999 10:35:57 "TEMPLATE_ERR[http://server/dmtemplate.asp](0)" "user@company.com" "Mail it" no_mail_sent


CAUSE

Direct Mailer cannot access and process the configured template. If you open the log file for the virtual Web site (winnt\System32\Logfile\W3SVCx), the following entries may be present:

14:58:49 xxx.xxx.xxx.xxx - GET /dmtemplate.asp - 401 752 Mozilla/4.0+(compatible;+MSIE+4.01;+Windows+NT) - -
The 401 status code indicates that you cannot access the template script.
14:58:49 xxx.xxx.xxx.xxx - GET /dmtemplat.asp - 404 623 Mozilla/4.0+(compatible;+MSIE+4.01;+Windows+NT)
The 404 status code indicates that the template file was not found.


RESOLUTION

There are two example templates furnished with Site Server: Dmtemplate.asp and Dmheader.asp. These templates are located in the Microsoft Site Server\Sites\Samples\Knowledge\Membership\Directmailer folder. To personalize the templates to work in your site, do the following:

  1. Copy Dmtemplate.asp and Dmheader.asp to your virtual Web site.


  2. Open the Dmtemplate.asp file and personalize the message.


  3. If your site does not allow Anonymous authentication, then you will need to do the following:

    1. Open the Dmtemplate.asp file and enter a valid username and password:
      m_BindAsUserName = "cn=Administrator, ou=Members, o=Site"
      m_BindAsPassword = password
      where Site is the name of the membership root organizational name, and password is the Administrator's password.


    2. Open the Dmheader.asp file and modify the User.BindAs line as follows:
      User.BindAs "", m_BindAsUserName, m_BindAsPassword




  4. Make sure that Anonymous access is set on these two files by performing the following steps:

    1. Open the MMC.


    2. Find the virtual Web site and locate the two template files in the right pane.


    3. Click on each of the files and click the Membership Authentication tab.


    4. Set Allow Anonymous on both of these files.




Additional query words:


Keywords          : 
Version           : winnt:3.0
Platform          : winnt 
Issue type        : kbprb 

Last Reviewed: February 24, 1999