Microsoft KB Archive/216245

= Direct Mailer Cannot Process Configured Template =

Article ID: 216245

Article Last Modified on 2/26/1999

-

APPLIES TO


 * Microsoft Site Server 3.0 Standard Edition

-



This article was previously published under Q216245



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 .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(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:  Copy Dmtemplate.asp and Dmheader.asp to your virtual Web site. Open the Dmtemplate.asp file and personalize the message. If your site does not allow Anonymous authentication, then you will need to do the following:

 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. Open the Dmheader.asp file and modify the User.BindAs line as follows:

User.BindAs "", m_BindAsUserName, m_BindAsPassword

 </li> Make sure that Anonymous access is set on these two files by performing the following steps:

 Open the MMC.</li> Find the virtual Web site and locate the two template files in the right pane.</li> Click on each of the files and click the Membership Authentication tab.</li> Set Allow Anonymous on both of these files.</li></ol> </li></ol>

Keywords: kbprb KB216245

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.