You can make a normal html form with as action a php file, in the php file it sends than an emaik.
file.html
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form action="sendmail.php" method="post" name="form1" target="_self" id="form1">
<input name="yourform" type="text" value="form" size="18" />
<!-- Other form elements come here -->
<input name="submit" type="submit" value="Submit" /> <input name="reset" type="reset" value="Reset" />
</form>
</body>
</html>
your php file, which has to be the same name as the action: sendmail.php can look like this
PHP Code:
<?php
$address = 'mail_acount_to receive@host.com';
$success = 'succes.php';
if( isset($_POST) )
{
$headers = "From: Mail <email_sender@host.com>";
$send_to = $email;
$content = '';
foreach( $_POST as $name => $value )
{
$content .= "$name: $value\n";
}
mail($address,'Email !',$content,$headers);
header("Location: $success");
}
?>
if your mail has been sended you visitors wil come to succes.php
all values from your form are sended in the mail.
Hope this helped :/
ps. it s not possible to send mails with html, you will need another language for it, php is the perfect solution.