Foros del Web » Programando para Internet » PHP »

Problemas con envio de correos

Estas en el tema de Problemas con envio de correos en el foro de PHP en Foros del Web. Hola a todos En mi página que acabo de subir hace unos pocos dias no me esta funcionando el envio de mensajes de contacto y ...
  #1 (permalink)  
Antiguo 27/03/2012, 05:15
Avatar de kbayin  
Fecha de Ingreso: marzo-2012
Ubicación: La Habana
Mensajes: 39
Antigüedad: 12 años
Puntos: 0
Problemas con envio de correos

Hola a todos
En mi página que acabo de subir hace unos pocos dias no me esta funcionando el envio de mensajes de contacto y me funcionó perfectamente al principio, que puede estar pasando?

en el index.html esta esto: <meta name="Reply-to" content="[email protected]">

en contact.asp:



name = Request("Your_Name:")
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "from " & name
myMail.From = Request("Your_Email:")
myMail.To = Request("recipient")
myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
myMail.Configuration.Fields.Update
myMail.Send

%>

Y en contact php:

<?
Error_Reporting(E_ALL & ~E_NOTICE);

while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}



reset($post_vars);


$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

$message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
}
next($post_vars);
}

mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");

?>
<script>
resizeTo(300, 300);
</script>
  #2 (permalink)  
Antiguo 27/03/2012, 05:23
Avatar de IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 9 meses
Puntos: 1012
Respuesta: Problemas con envio de correos

entiendo que lo que quieres decir es que has hecho la conversión asp/php y el php no te funciona. prueba con phpmailer
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}
  #3 (permalink)  
Antiguo 27/03/2012, 05:55
Avatar de kbayin  
Fecha de Ingreso: marzo-2012
Ubicación: La Habana
Mensajes: 39
Antigüedad: 12 años
Puntos: 0
Respuesta: Problemas con envio de correos

Lo que expongo es como esta configurado, al principio envió correos pero ahora da error. fijate en www.somosloquehay.com
  #4 (permalink)  
Antiguo 27/03/2012, 07:28
Avatar de IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 9 meses
Puntos: 1012
Respuesta: Problemas con envio de correos

no es enviado ni a contact.asp/php, sino a contact.indefined
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}
  #5 (permalink)  
Antiguo 28/03/2012, 09:16
Avatar de kbayin  
Fecha de Ingreso: marzo-2012
Ubicación: La Habana
Mensajes: 39
Antigüedad: 12 años
Puntos: 0
Respuesta: Problemas con envio de correos

Muchas gracias por la ayuda y la atención a mi problema, pero en realidad no se que hacer, no se como se desconfiguró. Si me pueden ayudar en eso se los agradeceria mucho.
  #6 (permalink)  
Antiguo 28/03/2012, 10:08
Avatar de kbayin  
Fecha de Ingreso: marzo-2012
Ubicación: La Habana
Mensajes: 39
Antigüedad: 12 años
Puntos: 0
Respuesta: Problemas con envio de correos

En el flash dice esto:

rec = _root.recipient;
serv = _root.server_option;
var fields_descriptions = Array("", Array("t1", "your_name", "your name:"), Array("t2", "your_email", "e-mail:"), Array("t3", "message", "Message:"), Array("t4", "your_company", "your company:"), Array("t5", "telephone", "telephone:"));
function reset_txt(name, name2, value) {
path = eval(_target);
path[name2] = value;
this[name].onSetFocus = function() {
path = eval(_target);
if (path[name2] == value) {
path[name2] = "";
}
};
this[name].onKillFocus = function() {
path = eval(_target);
if (path[name2] == "") {
path[name2] = value;
}
};
}
for (i=1; i<=fields_descriptions.length; i++) {
reset_txt("t"+i, fields_descriptions[i][1], fields_descriptions[i][2]);
}


en send en el flash dice esto:


rec = _root.recipient;
serv = _root.server_option;
var fields_descriptions = Array("", Array("t1", "your_name", "your name:"), Array("t2", "your_email", "e-mail:"), Array("t3", "message", "Message:"), Array("t4", "your_company", "your company:"), Array("t5", "telephone", "telephone:"));
function reset_txt(name, name2, value) {
path = eval(_target);
path[name2] = value;
this[name].onSetFocus = function() {
path = eval(_target);
if (path[name2] == value) {
path[name2] = "";
}
};
this[name].onKillFocus = function() {
path = eval(_target);
if (path[name2] == "") {
path[name2] = value;
}
};
}
for (i=1; i<=fields_descriptions.length; i++) {
reset_txt("t"+i, fields_descriptions[i][1], fields_descriptions[i][2]);
}

en tfile_main.html dice esto:

&server_option=php
&[email protected].


en idex.html dice esto:

<meta name="Reply-to" content="[email protected]">


en contact.php dice esto:

<?
Error_Reporting(E_ALL & ~E_NOTICE);

while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}



reset($post_vars);


$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

$message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
}
next($post_vars);
}

mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");

?>
<script>
resizeTo(300, 300);
</script>


en contac.asp dice esto:

<%
for i=1 to 7
message=Request("message")
next
message=message + Request("message")
smtpServer = "smtpout.secureserver.net"
smtpPort = 25


name = Request("Your_Name:")
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "from " & name
myMail.From = Request("Your_Email:")
myMail.To = Request("recipient")
myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
myMail.Configuration.Fields.Update
myMail.Send

%>





ahora miren la pagina traten de enviar un mensaje en contacto y veran el error. Alguien me podría ayudar a solucionarlo.
muchas gracias.

Etiquetas: correos, html
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:40.