mod_rewrite 301 redirect

To redirect the entire site, for example to enforce www. , add the following to .htaccess

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

CDONTS vs CDOSYS for ASP Email

CDONTS was deprecated and replaced by CDOSYS in Winddows 2003.  You can still install and use CDONTs if you need it though.  Just google for CDONTS and register the DLL.

CDONTS Example:

<%
Option Explicit

Dim objMail
Dim strSubject
Dim strBody

strSubject = “This is a test email in HTML format”