The following samples demonstrate how to use the EmailTemplate control.  The EmailTemplate control can be used to send simple submitted Webform information, along with building nicely formatted email templates.

Here is a list of the following examples:

Note: You will need to change any relevant email addresses and server information to allow the email to be delivered appropriately.

Using the EmailTemplate control.

Simple Form Results - Plain Text Formattedl
This example simply takes the submitted information on a webform and emails it to the sales team.

Simple Form Results - Html Formatted
Same as the Simple Control, except the email will be formatted as Html.

Simple Form Results-- Rendered
Same as the Simple Control, except the email will be the renderd form contents.

Simple Template Email
A simple email that merges the submitted form values against a template.

Simple Template Email -- Loaded from Files
The following example is similar to the Simple Template Email, except the message content is loaded from text files.

Saving a submitted form as plain text
The following example saves the submitted form to a plain text file.

Saving a submitted form as Html Tables
The following example saves the submitted form to a formatted Html file of tables.

Saving a submitted form as rendered Html
The following example saves the submitted form to it's rendered Html contents.

Saving a submitted form as Xml
The following example saves the submitted form to a Xml file.

Change When Email is Rendered
By default, the EmailTemplate fires during the PreRender event. This example shows how to change it.

Submitting emails directly to the IIS SMTP Service
If the IIS SMTP Service is running on  your machine, you can submit emails directly to the Pickup directory.