okay, i have created a template file...
and i have the variables for the automatic email
$username = $_POST['username'];
$email = $_POST['email'];
$password = $_POST['website'];
$website = $_POST['website'];
$mailto = $email;
$subject = "Client Information";
$message = "$templatedir/email_createaccount.xml"; // html code
mail($mailto, $subject, $message, "From: myemailaddress");
now all that does is email the person the link "www.example.com/_templates/email_createaccount.xml"
i've tried changing $message to require($templatedir ..... ) but all it emails is a "1" ....
what do i do to email the contents of email_....xml
Thanks in advance.