Hey, I am trying to get a form mailing script to work on my website, and I was not being successful. There is one that I have been using for the past couple years, but it appears to be incompatible with some servers that I am having to use. Anyway, I tried to write a new one based on some examples that I have found online and in books, but since I am basically a moron, I have been having a very frustrating time. Here is an example of the script that I am currently battleing:
<?php
$siteName = “blah.com”;
$siteURL = “http://www.blah.com”;
$siteContact = “peter.groik.com”;
$mailMessage = "
Name: $firstName $lastName
Phone: $phone
Address: $address
City: $city
State: $state
Zip: $zip";
// Build up email header fields
$mailFrom = "From: $siteName <$siteContact>";
$mailTo = "Peter Osborne <peter@groik.com>";
$mailSubject = "blah.com Contact Form";
// Send email
mail($mailTo, $mailSubject, $mailMessage, $mailFrom);
?>
Any help would be greatly appreciated!