gracias por la ayuda pero he enviado un mensaje y no recibo nada os pongo el codigo y aber si logro dar con ello
consulta.php:
Cita: <?php
$mail='
[email protected]';
$nombres = $_POST['nombres'];
$email = $_POST['email'];
$empresa = $_POST['empresa'];
$msg = $_POST['msg'];
$thank="contacto2.htm";
$message = "
nombres:".$nombres."
email:".$email."
empresa:".$empresa."
msg:".$msg."";
if (mail($mail,"consulta",$message))
Header ("Location: $thank");
?>
Contacto.htm:
Cita: <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td align="left" valign="top"><div class="style8" style="padding-left:14px; padding-top:12px"></div>
<div style="padding-left:14px; padding-top:14px">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table2">
<tr>
<form action="consulta.php" method="post">
<td height="14" colspan="2" align="left" valign="top" class="style1">Nombre:</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="nombres" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">E-mail:</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="email" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Empresa:</td>
</tr>
<tr>
<td height="24" colspan="2" align="left" valign="top"><input type="text" name="empresa" style="height:17px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD "></td>
</tr>
<tr>
<td height="14" colspan="2" align="left" valign="top" class="style1">Mensaje:</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"><textarea name="msg" style="height:61px; width:216px; font-family:tahoma; font-size:10px; border-width:1px; border-style:solid; border-color:#CDCDCD; overflow:auto " rows="1" cols="20"></textarea></td>
</tr>
<tr>
<td width="115" height="37" align="left" valign="top">
<p align="left"><FONT face=Arial color=#000000 size=1>
<INPUT type=submit value=Enviar name=Submit2><INPUT type=reset value=Borrar name=Submit></td>
</tr>
</table>
</div></td>
</tr>
</table>
que puede pasar?