Buenas a todos
que pena si aparento muy ignorante en este tema, pero es mi duda
resulta de que estoy pensando en utilizar el envio de mail desde mi pagina web y lei que con la funcion mail se puede hacer
entonces hice 2 paginas en php
la primera, (un poco rudimentaria, pero es de prueba)
MAIL.PHP
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
esta es la pagina para elaborar el correo
<br><br>
<form action="envio.php" method="post" name="enviodemail">
<table width="463" border="1">
<tr>
<th width="169" scope="row">Destino</th>
<td width="278"><label for="textfield"></label>
<input type="text" name="destino" id="textfield" /></td>
</tr>
<tr>
<th scope="row">Asuntos</th>
<td><label for="textfield2"></label>
<input type="text" name="asunto" id="textfield2" /></td>
</tr>
<tr>
<th scope="row">encabezado1</th>
<td><label for="textfield3"></label>
<input type="text" name="encabezado" id="textfield3" value="from:" /></td>
</tr>
<tr>
<th scope="row">encabezado2</th>
<td><label for="textfield4"></label>
<input type="text" name="encabezado" id="textfield4" /></td>
</tr>
<tr>
<th scope="row">mensaje</th>
<td><label for="textarea"></label>
<textarea name="mensaje" id="textarea" cols="45" rows="20"></textarea></td>
</tr>
</table>
<input name="boton_envia" type="submit" value="enviar mensaje" />
</form>
</body>
</html>
y la que activa el "ACTION"
ENVIO.PHP
PHP Code:
<?php
$destino_a=($_post["destino"]);
$asunto_a=($_post["asunto"]);
$mensaje_a=($_post["mensaje"]);
$encabezado_a=($_post["encabezado"]);
$encabezado_a = 'MIME-Version: 1.0' . "\r\n";
$encabezado_a= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($destino_a, $asunto_a , $mensaje_a,$encabezado_a ) or die ("Su mensaje no se envio.");
echo "ya, ok";
?>
entonces diligencio los datos en mail.php y al dar enviar, se activa envio.php
la pregunta es ¿como configuro mi cuenta de correo que cree en 000webhost para que el mail salga?
muchas gracias