Muy buenas a todos he estado leyendo todo el foro y a mucha gente le pasa lo mismo que a mi, un consuelo no soy tan tonto, :roll: pero es que he probado todas las soluciones que dais a la gente y no me funciona.
mi hosting es arsys, que me dicen que lo tienen todo activado
el codigo html es:
<form action="formulario.php" method="post" enctype="multipart/form-data" name="form1">
<table width="60%" border="0">
<tr>
<td><div align="left">Nombre</div></td>
<td><input name="nombre" type="text" id="nombre" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">Empresa</div></td>
<td><input name="empresa" type="text" id="empresa" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">Teléfono</div></td>
<td><input name="telefono" type="text" id="telefono" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">E-mail</div></td>
<td><input name="mail" type="text" id="mail" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">Mensaje</div></td>
<td><textarea name="mensaje" id="mensaje" cols="40" rows="8"></textarea></td>
</tr>
<tr>
<td><div align="left">
<input name="Borrar" type="reset" id="Borrar" value="Borrar">
</div></td>
<td><input name="Enviar" type="submit" id="Enviar" value="Enviar"></td>
</tr>
</table>
</form>
y el formulario.php es:
<?php
$sendTo = "[correo eliminado]";
$subject = "Mensaje recibido desde mi Web";
$nombre = $_POST["nombre"];
$empresa = $_POST["empresa"];
$telefono = $_POST["telefono"];
$mail = $_POST["mail"];
$mensaje = $_POST["mensaje"];
$headers .= "";
$message = "\nNombre: " . $nombre . "\nEmpresa: " . $empresa . "\nTeléfono: " . $telefono . "\nE-mail: " . $mail . "\nMensaje: " . $mensaje ;
mail($sendTo, $subject, $message, $headers);
?>
mi hosting es arsys, que me dicen que lo tienen todo activado
el codigo html es:
<form action="formulario.php" method="post" enctype="multipart/form-data" name="form1">
<table width="60%" border="0">
<tr>
<td><div align="left">Nombre</div></td>
<td><input name="nombre" type="text" id="nombre" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">Empresa</div></td>
<td><input name="empresa" type="text" id="empresa" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">Teléfono</div></td>
<td><input name="telefono" type="text" id="telefono" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">E-mail</div></td>
<td><input name="mail" type="text" id="mail" maxlength="50"></td>
</tr>
<tr>
<td><div align="left">Mensaje</div></td>
<td><textarea name="mensaje" id="mensaje" cols="40" rows="8"></textarea></td>
</tr>
<tr>
<td><div align="left">
<input name="Borrar" type="reset" id="Borrar" value="Borrar">
</div></td>
<td><input name="Enviar" type="submit" id="Enviar" value="Enviar"></td>
</tr>
</table>
</form>
y el formulario.php es:
<?php
$sendTo = "[correo eliminado]";
$subject = "Mensaje recibido desde mi Web";
$nombre = $_POST["nombre"];
$empresa = $_POST["empresa"];
$telefono = $_POST["telefono"];
$mail = $_POST["mail"];
$mensaje = $_POST["mensaje"];
$headers .= "";
$message = "\nNombre: " . $nombre . "\nEmpresa: " . $empresa . "\nTeléfono: " . $telefono . "\nE-mail: " . $mail . "\nMensaje: " . $mensaje ;
mail($sendTo, $subject, $message, $headers);
?>