Hi,
I hope someone can help or lead me in the right direction. I have like 6 Forms that need to process, each with different field names. Now, I’m looking to use a general script that will take fields and send them vial E-mail to correct e-mail addess. Example: Newsletter form with different fields, and now I would like a newsletter.php to process the data and send via e-mail:
[code=php]<?php
$Contact_FirstName = $_POST[‘Contact_FirstName’] ;
$Contact_LastName = $_POST[‘Contact_LastName’] ;
$Contact_MiddleInitial = $_POST[‘Contact_MiddleInitial’] ;
$Contact_StreetAddress = $_POST[‘Contact_StreetAddress’] ;
$Contact_Address2 = $_POST[‘Contact_Address2’] ;
$Contact_City = $_POST[‘Contact_City’] ;
$Contact_State = $_POST[‘Contact_State’] ;
$Contact_ZipCode = $_POST[‘Contact_ZipCode’] ;
$Contact_Country = $_POST[‘Contact_Country’] ;
$Contact_HomePhone = $_POST[‘Contact_HomePhone’] ;
$Contact_Email = $_POST[‘Contact_Email’] ;
$Receive_By_US_Mail = $_POST[‘Receive_By_US_Mail’] ;
$Receive_By_Email = $_POST[‘Receive_By_Email’] ;
$msg=”Your name: ” . $_POST[‘Contact_FirstName’] . “n”;
$msg=”Your email: ” . $_POST[‘Contact_Email’]. “n”;
$headers=”From: ” . $_POST[‘Contact_Email’];
mail(“[email protected]”, “Newsletter Sign In”,$msg, $headers);
?>
After I press the submit button, and I go to the destination e-mail nothing has arrived. Also, I’m doing this for site, and I’m working on it through a dedicated IP Address, since the domain name has been pointed yet to the hosting server…..I’ve also looking to add a re-direct code to take me to another page. I understand that one can use the mailto: in the form action, but this can be dangerous for spam……I would like to use the hard and secure method…..Thanks and God Bless…..
God Love U
[url]www.endtimestube.com