The panel to define the E-Mail Subject and Body
The E-mail Subject
The E-mail Body
If checked replace the VbCRLf with a "<BR>" tag from the body mail.
You can use this option when you get the body value from a form TextArea.
Body from File
Select the file that is the E-mail body.
The file content will be read before the mail is send so You can modify the content and be sure that all the successive mail will be down.
The body text can contain HTML code.
Body from dynamic page
With this new feature you can get the body of your mail from a dynamic page.
The HTML code will be the HTML code generated by this page like you open this page in a browser.
You can also send parameter to this page. This page can be in your site or in each other internet/intranet domain. This page can be any type of dynamic page (asp, asp.net, cgi, php, cfm, jsp, etc...)
To get the data from a dynamic page I use the MSXMLHTTP
COM object so this componentmust be installed on your server. To test if on your server You have a correct component installed you can download my TestPage
. This component is included in IIS.
The component can be setup in the XmlHTTP combo, and you must choose the one is working on your server, only if the default don't work.
The syntax to get this page from your server is:"/YourFolder/YourPage.asp"
The syntax to get this page from an Internet domain is:"http://www.Domain.com/YourFolder/YourPage.asp"
You can send parameters to this page and in this case we have many case:
Case 1 - Get parameter from the form field where you apply the extension:
This is an email send on the onSubmit Form Event "/YourFolder/YourPage.asp?Parameter1=" & UploadFormRequest("<YourFieldNameHere>") & "&Parameter2=" & UploadFormRequest("<YourFieldNameHere>")
Case 2 - Get parameter from the page that call the sendMail page:
This is an email send on the onLoadPage Event"/YourFolder/YourPage.asp?Parameter1=" & UploadFormRequest("<YourFieldNameHere>") & "&Parameter2=" & UploadFormRequest("<YourFieldNameHere>")
Case 3 - Get Session value:"/YourFolder/YourPage.asp?Parameter1=" & session("<YourSessionNameHere>") & "&Parameter2=" & UploadFormRequest("<YourFieldNameHere>")
The page You call cannot get the value of the Session Object directly You must send this value in the parameter string. This because the component that call this page create a new session for the server. You can add how many parameter you need.
Verify exactly the syntax because if the syntax is not correct You receive an error HTTP 500.100 on load the page.
Get the E-mail body from file.
The content of the file is immediately read and insert in the Body textarea so You can modify it immediately.
Open the field window. In the Field Window you find 2 List Menu:
Form Field Contain the list of the filed of the form you select in the Form List in the Data Panel.
Recordset Field Contain the list of the recordset's filed You define in the Data panel.
After you select a value from one List Menu I add the corresponding value in the Field with a special tag to recognize if the field is from Form or from Recordset.
WARNING!! Don't modify this special tag
Insert the refence to all the form field in the body text and in the replace list
Set the dynamic value for the field