Foros del Web » Estrategias Digitales y Negocios Online » Negocios »

como enviar correo a mi hotmail desde la web

Estas en el tema de como enviar correo a mi hotmail desde la web en el foro de Negocios en Foros del Web. hola tengo una cibertienda casi terminada. pero no logro que me envie el correo del formulario a mi cuenta de correo. creo que debo de ...
  #1 (permalink)  
Antiguo 03/03/2007, 11:33
 
Fecha de Ingreso: febrero-2007
Mensajes: 15
Antigüedad: 17 años, 2 meses
Puntos: 0
como enviar correo a mi hotmail desde la web

hola tengo una cibertienda casi terminada. pero no logro que me envie el correo del formulario a mi cuenta de correo. creo que debo de tener instalado algun programa. si sabes cual y donde bajarlo os lo agradeceria y si es en castellano mejor aunque creo que es mucho pedir. muchas gracias de antemano. por cierto como se haria para que lo enviase sin necesidad de nada.
  #2 (permalink)  
Antiguo 03/03/2007, 13:14
Avatar de Juanle455  
Fecha de Ingreso: septiembre-2006
Ubicación: Via lactea
Mensajes: 248
Antigüedad: 17 años, 7 meses
Puntos: 2
Sonrisa Re: como enviar correo a mi hotmail desde la web

Puedes usar este script sencillo en php:
Código PHP:
<?
if(isset($_POST['enviar'])) {
    
mail('tucorreo','Mensaje enviado de la web',$_POST['mensaje'],"From: {$_POST['nombre']} <{$_POST['email']}>") ;
    echo 
'El email ha sido enviado con éxito.' ;
}
?>
<form method="post" action="<?=$_SERVER['REQUEST_URI']?>">
Nombre:<br />
<input type="text" name="nombre"><br />
Email:<br />
<input type="text" name="email"><br />
Mensaje:<br />
<textarea name="mensaje" cols="30" rows="5"></textarea><br /><br />
<input type="submit" name="enviar" value="Enviar">
</form>

En donde dice "tucorreo", pon tu cuenta hotmail, si no modificas nada el envio se hara automaticamente al pulsar el boton "Enviar".


Suerte!
  #3 (permalink)  
Antiguo 03/03/2007, 15:00
 
Fecha de Ingreso: febrero-2007
Mensajes: 15
Antigüedad: 17 años, 2 meses
Puntos: 0
Re: como enviar correo a mi hotmail desde la web

hola muchas gracias pero sigue sin enviarme el correo. mira te paso el codigo te agradeceria mucho que me ayudaras o alguien que sepa como.

<html>
<head>
<title>Formulario</title>
<style type="text/css">
.body {
font-family: Times New Roman;
font-size: 10pt;
font-style: normal;
font-weight: normal;
font-variant: normal;
color: #000000;
}

.td {
font-family: Times New Roman;
font-size: 10pt;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
color: #000000;
}


</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function Enviar(form) {
for (i = 0; i < form.elements.length; i++) {
if (form.elements[i].type == "text" && form.elements[i].value == "") {
alert("Por favor complete todos los campos del formulario"); form.elements[i].focus();
return false; }
}
form.submit();
}
// -->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" link="#32468D" vlink="#800080" class="body">
<SCRIPT LANGUAGE="JavaScript">

function alterError(value) {
if (value<=0.99) {
newPounds = '0';
} else {
newPounds = parseInt(value);
}
newPence = parseInt((value+.0008 - newPounds)* 100);
if (eval(newPence) <= 9) newPence='0'+newPence;
newString = newPounds + '.' + newPence;
return (newString);
}

function showItems() {
index = document.cookie.indexOf("TheBasket");
countbegin = (document.cookie.indexOf("=", index) + 1);
countend = document.cookie.indexOf(";", index);
if (countend == -1) {
countend = document.cookie.length;
}
fulllist = document.cookie.substring(countbegin, countend);
totprice = 0;

itemlist = 0;
for (var i = 0; i <= fulllist.length; i++) {
if (fulllist.substring(i,i+1) == '[') {
itemstart = i+1;
} else if (fulllist.substring(i,i+1) == ']') {
itemend = i;
thequantity = fulllist.substring(itemstart, itemend);
itemtotal = 0;
itemtotal = (eval(theprice*thequantity));
temptotal = itemtotal * 100;
var tax = itemtotal / 100 * (0 - 0);
tax = Math.floor(tax * 100)/100
totprice = totprice + itemtotal + tax;
itemlist=itemlist+1;
document.writeln('<INPUT TYPE="hidden" NAME="Producto'+itemlist+'" VALUE="'+theitem+'" SIZE="40">');
document.writeln('<INPUT TYPE="hidden" NAME="Cantidad'+itemlist+'" VALUE="'+thequantity+'" SIZE="40">')
document.writeln('<INPUT TYPE="hidden" NAME="ProductoTotal'+itemlist+'" VALUE="'+alterError(itemtotal)+'" SIZE="40">');
} else if (fulllist.substring(i,i+1) == ',') {
theitem = fulllist.substring(itemstart, i);
itemstart = i+1;
} else if (fulllist.substring(i,i+1) == '#') {
theprice = fulllist.substring(itemstart, i);
itemstart = i+1;
}
}

document.writeln('<INPUT TYPE="hidden" NAME="Total" VALUE="'+alterError(totprice)+'" SIZE="40">');

}
function Total() {
document.writeln(alterError(totprice));
}

</SCRIPT>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="640" class="body">
<tr>
<td width="50%"><big><big>Formulario</big></big></td>
<td width="50%" align="right">[ <a href="carrito.htm">Carrito de Compra</a> | <a href="estado.htm">Estado</a> | Formulario ]</td>
</tr>
<tr>
<td width="100%" colspan="2">
<hr size="1" color="#000000">
</td>
</tr>
<tr>
<td width="100%" colspan="2"></td>
</tr>
</table>

<?
if(isset($_POST['enviar'])) {
mail('[email protected]','Mensaje enviado de la web',$_POST['mensaje'],"From: {$_POST['nombre']} <{$_POST['email']}>") ;
echo 'El email ha sido enviado con éxito.' ;
}
?>

<input type=hidden name="recipient" value="[email protected]">
<input type=hidden name="subject" value="Cibertienda - Orden de Compra">
<input type=hidden name="redirect" value="mi dominio">
<input type=hidden name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT">
<table cols="2" width="370" class="body">
<td width="130"></td>
<td width="270">
</td>
</tr>
<tr><td>Nombre</td><td><input type="text" name="nombre" size=34></td></tr>
<tr><td>Apellido</td><td><input type="text" name="apellido" size=34></td></tr>
<tr><td>Domicilio</td><td><input type="text" name="domicilio" size=34></td></tr>
<tr><td>Ciudad</td><td><input type="text" name="ciudad" size=34></td></tr>
<tr><td>Provincia</td><td><input type="text" name="provincia" size=34></td></tr>
<tr><td>Código Postal</td><td><input type="text" name="cp" size=34></td></tr>
<tr><td>País</td><td><input type="text" name="pais" size=34></td></tr>
<tr><td>E-mail</td><td><input type="text" name="email" size=34></td></tr>
<tr><td>Teléfono</td><td><input type="text" name="telefono" size=34></td></tr>
<tr><td>Fax</td><td><input type="text" name="fax" size=34></td></tr>

<SCRIPT LANGUAGE="JavaScript">
showItems();
</SCRIPT>
<tr>
<td>Total:</td>
<td>$
<SCRIPT LANGUAGE="JavaScript">Total()</SCRIPT>
</td>
</tr>

<tr>
<td><br><br></td>
<td>
<input type="button" value="Enviar" onClick="return Enviar(this.form)">
<input type="reset" value="Restablecer">
</td>
</tr>
</table>
</form>

</center>
</body>
</html>

Última edición por canijokawa; 03/03/2007 a las 15:15
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:53.