I have an HTML feedback form for my website. I want to send the input values of this form directly to my google mail. I have google hosted email for my domain. What do i do? I do not want to use any email software like outlook.
Popularity: 2% [?]
Related posts:
Related posts brought to you by Yet Another Related Posts Plugin.
This will always happen if you use the HTML “function” call “mailto= xxx”.
Avoid using it: it is bad and amateurish design.
If you have a server-side script like php, here is one:
HTML FORM to EMAIL (Php)
Your index.html file:
(replace
Your emailfwd.php file:
< ?php
$name = $_POST['name'];
$pwd = $_POST['pwd'];
$email = $_POST['email'];
$to = "youremail@whatever.com";
$headers = "From: ".$email. "rn";
$subject = "Submitted application";
$msg = $name . " has sumitted a form!rn";
$msg .= "Pwd: " . $pwd . "rn";
$msg .= "email address: " . $email . "rn";
mail($to, $subject, $msg, $headers);
echo ("Mail processed.");
?>
You might consider using server side java script on the contact us page you want them to fill the contact form. It makes web page template should send the contact form details directly to your mail.
It is better to use a form with a text field for messages, on server side send message to your email. This way you do not expose your email on the web.
Example:http://bragflags.bravehost.com/contact.p…
If you need help, contact me and I can prepare script for you.
You need a server side script that will process the form data.
See http://www.cs.tut.fi/~jkorpela/forms/
The specifics will depend on the capabilities of your webserver.