
This document contains information concerning the Dundas Mailer control and demos . There is a Requirements section which is then followed by
a brief summary of each control. This is followed by a description of the four (4) sample applications.
Instructions are also provided for setting up and configuring the demos, and in
addition there is a troubleshooting section for your convenience.
NOTE: to find out how to delete files uploaded by users (which occurs with two of the sample applications) click here.
Overview of the Four ASP Demos.
In order to run the demos one of the following sets of conditions must be met:
The Dundas Mailer control (DSMailer.dll) is a free commercial email control which utilizes the SMTP, MIME and NNTP protocols to send email messages and post news articles. It has been designed for use within Active Server Pages (ASP) and can be used by any person or organization that is hosting web sites using Microsoft's Internet Information Server. It is also used in conjunction with the Dundas Upload Control when dealing with uploaded files to be sent either as attachments or embedded html objects.
To download the free Dundas Upload control click here.
The Links.htm page provides you with links to all four of the demo applications.
1) AutoResponse Demo
This demo consists of one self-posting file named "AutoResponse.asp". In this scenario a user has forgotten their password and needs to retrieve it. They enter their first name, last name, email address and they can optionally specify an SMTP server to increase the speed and efficiency of the operation. When they submit this information the Mailer control is used to send them their fictitious username/password combination.AutoResponse utilizes the Dundas Mailer control.
This demo lets a user send an email to a specified address along with an optional file attachment.The page which gathers the user's data is named "SendMail.asp". It utilizes an html form (the EncType attribute being set to "Multipart/Form-Data") and POSTS to another ASP page called "SendMail_Process.asp". This page is responsible for retrieving the form data, setting the various email headers, processing the uploaded file (if any) and sending the email. If the mail sending operation is successful the user is redirected back to the main page and a success message is displayed. If the operation fails the user is redirected to the Error.asp page.
Both the Upload and Mailer controls are used.
This sample allows a user to send an html-based email along with two optional embedded objects.The page which gathers the users data is named "SendHtmlEmail". It utilizes an html form which POSTS to another page called "SendHtmlEmail_Process". This page sets the email headers, processes any uploaded files, handles the embedding of the html objects and then send the email to the specified recipient. If the mail sending operation is successful the user is redirected back to the main page and a success message is displayed. If the operation fails the user is redirected to the Error.asp page.
Both the Upload and Mailer controls are used for this sample.
This sample lets a user post an article to a news group. The article can either be posted to the root of the news group directory or underneath an existing article as a response.The page which gathers the users data is named PostArticle.asp. It POSTS to another page called "PostArticle_Process.asp". This page sets the article headers and then sends the article to the specified news group (by default we use "msnews.microsoft.com" as the server along with "microsoft.a.test" as the default news group). If the article is successfully posted the user is redirected back to the main page and a success message is displayed. If the operation fails the user is redirected to the Error.asp page.
This sample utilizes the Mailer control only.
The windows account under which the install runs needs to have administrative priviledges for a successful installation.
Please note that the Dundas Upload Control 2.0 is required for the "html email" and "email with an attachment" sample applications. To download the free Dundas Upload control click here.
The following files will be copied to the selected installation directory:
Start menu entries are as follows:
In order to host these demos you need to be using MS Internet Information Server (IIS) along with either Windows 2000 or Windows NT. The samples have not been tested for use with Microsoft's Personal Web Server. Also, in order to set up NTFS permissions the drive in question must be utilizing an NTFS FAT.
To run these samples:A folder with the name "4AA80F25-21E4-11D4-9985-0050BAD44BCD" will be created at the root of your c:\ drive for the "Sending an Html Email with Embedded Objects" and "Sending an Email with an Attachment" demos when either of these samples are run for the first time. This directory is used to store files uploaded by the user. If you want to delete these files you will need to do the following two things:
VBSCript RunTime Error "800a01ad" ActiveX component can not
create object
Either the DSUpload.dll or DSMailer.dll does not have the appropriate permissions. Make sure that the default web account has Full Control rights for both dll's.
Error "800a001e" A required priviledge is not held by the client
This is probably caused by calling the ImpersonateUser method of the Upload control in conjunction with the "Run in Separate Memory Space" box being checked in your Home Directories property page (found in the Microsoft Management Console, or MMC). To get around this you can either grant the default web account "Act as Part of the Operating System" priviledges or alternatively you can just turn off the "Run in Separate Memory Space" option. Refer to either the MSDN or the Free Programs Documentation (examine the ImpersonateUser topic) for details on how to grant operating system priviledges.