<%@ Language=VBScript %> <% '********************************************************************************* 'Copyright Dundas Software Ltd. 2000. All Rights Reserved. ' 'PURPOSE: The user can send an html-based email to the specified ' recipients, and optionally specify a background audio file ' as well as a background picture for the email. ' 'POST DESTINATION: SendHtmlEmail_Process.asp. ' 'INPUT: SMTP server (optional), TO recipients, CC recipients, BCC ' recipients, From address, Subject of the message, the message ' body, optional background audio file and optional background ' image for the html-based email. ' 'COMMENTS: Maximum amount of posted data is 1 Meg. ' A success message is displayed if the email is successfully ' sent. ' 'Dundas Software Contact Information: ' Email: sales@dundas.com ' Phone: (800) 463-1492 ' (416) 467-5100 ' Fax: (416) 422-4801 '********************************************************************************* %>
<% Dim temp(5) 'used to populate form elements with values returned from SendHtmlEmail_Upload.asp 'check to see if an email was sent previously, if so output success message If Request.QueryString("Success") = "TRUE" Then Response.Write "
The previous email was successfully sent to either the destination address or the SMTP relay server (if specified).
" 'now grab the querystring parameter which stores the form's element values Dim l For l = 1 To 6 temp(l - 1) = Request.QueryString("Value" & l) Next Else 'user loaded page for first time, so set temp array to zero-length string values For l = 0 To 5 temp(l) = "" Next End If %>
 

SMTP Relay Server:
(Optional.  Using a relay server will improve the performance of the operation.)


From:

 

To:

  *

Cc:
Bcc:
Subject:
Background Picture:
Background Sound: 

This demo sends an html-based email to a specified destination address, letting you set various message headers like From, Subject,CC and BCC.  You can also select a background image as well as a background sound for the email.

We use this main page to retrieve email data and then post to an asp page (named SendHtmlMail_Upload.asp) which uses the upload and email controls to handle the embedded objects and send the email. If the operation is successful you will be redirected back to this main page. If it is not successful you will be redirected to an error page.