Email Form Stopped Working


#1

I have a contact form at www.rayhendricksphoto.com/index2.html that was working fine for quite a while but I tested it today and I never recieve the mail. Below are the php and asp files that are called.

<?php //echo ""; $recipient=$_POST["recipient"]; $subject=$_POST["subject"]; $whofrom=$_POST["Email"]; while (list ($key, $val) = each ($_POST)){ $message=$message."".$key.": ".$val."\r\n"; } mail ($recipient, $subject, $message,"From: ".$whofrom."\r\nReply-To: ".$whofrom."\r\n"); //echo "Sending mail..."; //echo ""; ?>

<%
Dim objMail
Set objMail = Server.CreateObject(“CDONTS.NewMail”)

'these are the variables
FromVar = Request.Form(“Email”)
FromName = Request.Form(“Name”)
ToVar = Request.Form(“recipient”)
SubjectVar = Request.Form(“subject”)
For Each x In Request.Form
message = message & x & ": " & Request.Form(x) & CHR(10)
Next

'BodyVar = "Name: "&FromName& vbCrLf
BodyVar = message

'from to etc
objMail.From = FromVar
objMail.Subject = SubjectVar
objMail.To = ToVar
objMail.Body = BodyVar
objMail.Send

set objMail = nothing

%>

Can anyone help me with this?


#2

How are you using ASP on Dreamhost?

–rlparker