Hello,
this is my very first post here: so please forgive my ignorance.. and... my first attempts at PHP as well. I'm using a cobbled together (from different places) the below script....
However, the emails that are being sent are using the $name and I would rather have it use the "From: Contact Form" that way you would be able to see where the email originated from....
Does that make any sense?
also... [ this would be really nice - I've seen some preformatted replys arrive in email sometimes html emails and other tiimes just nicely formatted email messages. Is there a way to add that feature (or something like it - maybe html code) to this script, where the ( mail($email, ) is?
this is my very first post here: so please forgive my ignorance.. and... my first attempts at PHP as well. I'm using a cobbled together (from different places) the below script....
However, the emails that are being sent are using the $name and I would rather have it use the "From: Contact Form" that way you would be able to see where the email originated from....
Does that make any sense?
also... [ this would be really nice - I've seen some preformatted replys arrive in email sometimes html emails and other tiimes just nicely formatted email messages. Is there a way to add that feature (or something like it - maybe html code) to this script, where the ( mail($email, ) is?
Code:
<?PHP
$to = "name@url.com";
$msg .= "This message has been sent from your Flash Form\n\n";
$msg .= "Name: $name\n";
$msg .= "Email: $email\n";
$msg .= "Website: $website\n";
$msg .= "Address 1: $address1\n";
$msg .= "Address 2: $address2\n";
$msg .= "City: $city\n";
$msg .= "State: $state\n";
$msg .= "Zip Code: $zip\n";
$msg .= "Country: $country\n";
$msg .= "Message: $comment\n";
mail($to, $name, $msg, "From: Contact Form\nReply-To: $email\n");
[COLOR=red]mail($email, "Thank you for contacting Us","We will return your mail shortly\n
************************************
This is not SPAM! - This note is
autogenerated by completing the
information fields in our
contact page - Thankyou again.
************************************
", "From: <url>");[/color]
?>