Online Product Info
AR_TemplateFile Property

Description
The AR_TemplateFile property specifies a file that contains html or a simple text message with optional Auto Email Tags to be used as a basis for emails sent by the built-in Auto Responder.

Default Path
If you specify a filename without a path, ASP.NET Auto DB will look for your file in the current directory (i.e. the same directory/folder as your Auto DB form.

Note: If you do not specify a valid template file, an auto response will not be sent.

A Simple HTML Auto Response Template
An HTML Template is just a simple text file with HTML, content, and Auto Email Tags as shown in Listing A.

<html>
<head>
  <title>New Application</title>
</head>
<body>
<h1>We have received your application for <#Position#></h1>

<#First_Name#> <#Last_Name#>,<br><br>

We have received your application for <#Position#> and will be back in touch with you if your skills match our immediate needs. We will file your application for up to 6 months in either case.<br><br>

Best Regards,<br><br>

Human Resources<br>
My Company, Inc.<br>
<a href="http://www.mycompanyinc.com">www.mycompanyinc.com</a>

</body>
</html>

Listing A

If you don't like HTML, you can certainly use a program like FrontPage or ASP.NET Web Matrix to create a simple web page, and use it as your template. If you use images in the template, make sure they are fully qualified "http://www.mycompany.com/images/myimage.gif".

A Simple Text Auto Response Template
This is a simple text file with content, and Auto Email Tags as shown in Listing B.

Dear <#First_Name#> <#Last_Name#>:

We have received your application for <#Position#> and will be back in touch with you if your skills match our immediate needs. We will file your application for up to 6 months in either case.

Best Regards,

Human Resources
My Company, Inc.
www.mycompanyinc.com

Listing B

Note: The AR_TemplateFile property can be in text or HTML format. You can include any Auto Email Tags (field/control ids) if you want to personalize the message.

Usage
See Listing B for an example of the AR_TemplateFile 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_HTMLFormat="True" AR_TemplateFile="MyHTMLResponse.html"> </cc1:AutoDB>
Listing B

Related Properties

AR_HTMLFormat

 

© copyright 2004 360 IMPACT. All rights reserved.