mail form

jafbox

New Member
Messages
12
Reaction score
0
Points
0
i am looking for a mail form that will work can some one please help me
 

jafbox

New Member
Messages
12
Reaction score
0
Points
0
i am looking for a mail form so that people may email me from my site
 

cenobite321

Member
Messages
77
Reaction score
0
Points
6
Well, you can use some php for that, here's an example:

<html>
<head>
<title> E-mail </title>
</head>
<body>
<form method="post" name="Contact" action="">
<table border="0" width="400" cellspacing="0">
<tr>
<td width="100%" colspan="2">
<font face="Verdana" size="1">
Send me an e-mail: <br><br>
</font>
</td>
<tr>
<td width="18%">
<font face="Verdana" size="1">
Name:
</font>
</td>
<td>
<input type="text" name="name" value="" size="51">
</td>
</tr>
<tr>
<td width="18%">
<font face="Verdana" size="1">
E-mail
</font>
</td>
<td>
<input type="text" name="email" value="" size="51">
</td>
</tr>
<tr>
<td width="18%">
<font face="Verdana" size="1">
Message
</font>
</td>
<td>
<textarea name="message" rows="7" cols="38">
</textarea>
</td>
</tr>
<tr>
<td>
</td>
<br>
<input onmouseover=this.style.cursor="hand" type="submit" name="sub" value="Send" style="border:0; height:18; width:50; background: #E8F3FD">
</td>
</tr>
</table>
</form>

<?php

$action = strip_tags($_POST[sub]);
$Subject= strip_tags($_POST[name]);
$e_mail = strip_tags($_POST);
$Message = strip_tags($_POST[message]);
$TargetEmail = 'thedestinationemailaddress@something.com';

if($accion = 'Enviar'){
$success = mail($TargetEmail,$Subject,$Message,"From: <$e_mail>");
}
?>
</body>
</html>
 
Top