This code works fine on other web hosts. Someone please let me know what I need to change to make it work with Dreamhost.
(Regarding my account, the account I am currently using only has an Affiliate account, but I manage a number of websites hosted on Dreamhost for clients - clients I actually referred to Dreamhost)
Here is my code. I know there are ways to make this safer but, most importantly, I need it work. Thanks.
$name = $_POST[‘name’];
$email = $_POST[‘email’];
$phone = $_POST[‘phone’];
$message = $_POST[‘message’];
$subject = $_POST[‘subject’];
$formcontent=“Sent from AnyelleBellydance.com.\n\nName: $name\nE-mail: $email\nPhone: $phone\n\nMessage:\n$message”;
$recipient = "firstname.lastname@example.org";
$subject_full = “AnyelleBellydance.com: $subject”;
$mailheader = “From: $email \r\n”;
mail($recipient, $subject_full, $formcontent, $mailheader) or die(“Error!”);
echo “<meta http-equiv=“refresh” content=“0;url=…/ThankYou.html”>”;