English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

this is what i want...

someone to be able to click on contact,feedback or advertise with us with in my web site and a form comes up they fill it out and it gets emailed to me

is that php if so how do i do it

if not what do i need and how do i do it

thanks

2006-11-16 07:05:25 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers







// get the current time/date
$today = date("m-d-Y @ h:i A", time());

// build email message
$msg = "Name: ".$_POST['form_name']."\r\n Message:".$_POST['form_message'].";
$mail_message = "Time Sent: $today\r\n".
$mail_message.= "$msg";
// setup the rest of the email
$mail_to = "thisperson@yourdomain.com";
$mail_subject = "Subject Here - ".$_POST['form_name']."";
$mail_headers = 'From: whoever@yourdomain.com' . "\r\n" .
'Reply-To: whoever@yourdomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

// mail the application
mail($mail_to, $mail_subject, $mail_message, $mail_headers)
?>

2006-11-16 07:28:44 · answer #1 · answered by Farnsworth 3 · 0 0

fedest.com, questions and answers