Online Product Info
AR_ToAddr Property

Description
The AR_ToAddr property specifies who should receive an auto response email after your form is submitted. Typically, you would use Auto DB Tags to specify the email address of the user submitting your form as shown in Listing B.

Note: The two required fields for sending an auto response are AR_ToAddr and AR_TemplateFile

Usage
See Listing A for an example of the AR_ToAddr property in the Auto DB control tag.

<cc1:AutoDB id="AutoDB1" runat="server" MailServer="mail.mycompany.com" AR_ToAddr="user@company.com" AR_FromAddr="hr@mycompany.com" AR_TemplateFile="MyAutoResponse.txt"> </cc1:AutoDB>
Listing A

Alternate Usage - Dynamically set the AR_ToAddr property without programming!
You can use Auto DB Tags like <#Email_Address#> to have ASP.NET Auto DB dynamically assign the AR_ToAddr property to the value of a control with the ID "Email_Address". 

See Listing B for an example of using Auto DB Tags in the AR_ToAddr property.

<cc1:AutoDB id="AutoDB1" runat="server" MailServer="mail.mycompany.com" AR_ToAddr="<#Email_Address#>" AR_FromAddr="hr@mycompany.com" AR_TemplateFile="MyAutoResponse.txt"> </cc1:AutoDB> 
Listing B

Related Properties

AR_MailFromAddr

 

© copyright 2004 360 IMPACT. All rights reserved.