cambios en envio de email

This commit is contained in:
humano 2018-12-11 09:26:44 -05:00
parent 37619a8324
commit a0c952a406

View File

@ -3552,7 +3552,7 @@ if($accion =="enviar" OR $accion =="preview" ) {
$nombre_respuesta= $formulario['nombre_respuesta'];
$email_respuesta= $formulario['correo_respuesta'];
$campo_nombre = $formulario['nombre'];
$email = remplacetas("empresa","id","$id_empresa","email","");
$email = remplacetas("empresa","id","1","email","");
$razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
$id_formulario = $formulario['formulario'];
@ -5338,7 +5338,7 @@ $tipo='success';
$direccion = remplacetas("empresa","id",$id_empresa,"direccion","");
$telefono = remplacetas("empresa","id",$id_empresa,"telefono","");
$web = remplacetas("empresa","id",$id_empresa,"web","");
$email = remplacetas("empresa","id",$id_empresa,"email","");
$email = remplacetas("empresa","id","1","email","");
$imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
$razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
$slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
@ -8290,21 +8290,28 @@ return $formulario;
$web = remplacetas("empresa","id",$id_empresa,"web","");
//// siempre se enviara el email desde el mail parametrizado en la empresa 1
//$email = remplacetas("empresa","id","1","email","");
$email = remplacetas("empresa","id","$id_empresa","email","");
$email = remplacetas("empresa","id","1","email","");
$reply = remplacetas("empresa","id","$id_empresa","email","");
$imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
$razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
$slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
$nombre_formulario = remplacetas("form_id","id",$id,"nombre","");
/*
* $headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "From: $nombre_respuesta <".$email[0].">\r\n";
$headers .= "Reply-To: $nombre_respuesta <".$email_respuesta.">\r\n";
$headers .= "Return-path: <$email[0]>\r\n";
*
* */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $razon_social[0] <$email[0]>\r\n";
$headers .= "Reply-To: $razon_social[0] <$reply[0]>\r\n";
$headers .= "Return-path: $email[0]\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "From: $razon_social[0] <".$email[0].">\r\n";
$headers .= "Reply-To: $razon_social[0] <".$reply[0].">\r\n";
$headers .= "Return-path: <".$email[0].">\r\n";
$headers .= "Cc: $propietario[0]" . "\r\n";
$impresion = formulario_imprimir("$id","$control","email");
$impresion = formulario_imprimir("$id","$control","email","");
$impresion ="
$encabezado
@ -9681,7 +9688,7 @@ $respuesta = new xajaxResponse('utf-8');
if($accion=="enviar") {
$id_empresa="1";
$email_empresa = remplacetas("empresa","id","$id_empresa","email","");
$email_empresa = remplacetas("empresa","id","1","email","");
$administrador = remplacetas("empresa","id","1","email","");
$reply = remplacetas("empresa","id","$id_empresa","email","");
$imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
@ -17803,7 +17810,7 @@ $mensaje_agradecimiento = remplacetas('form_parametrizacion','campo',"$formulari
$web = remplacetas("empresa","id",$id_empresa,"web","");
//// siempre se enviara el email desde el mail parametrizado en la empresa 1
//$email = remplacetas("empresa","id","1","email","");
$email = remplacetas("empresa","id","$id_empresa","email","");
$email = remplacetas("empresa","id","1","email","");
$reply = remplacetas("empresa","id","$id_empresa","email","");
$imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
$razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
@ -18893,7 +18900,7 @@ $respuesta = new xajaxResponse('utf-8');
$direccion = remplacetas("empresa","id",$id_empresa,"direccion","");
$telefono = remplacetas("empresa","id",$id_empresa,"telefono","");
$web = remplacetas("empresa","id",$id_empresa,"web","");
$email = remplacetas("empresa","id",$id_empresa,"email","");
$email = remplacetas("empresa","id","1","email","");
$imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
$razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
$slogan = remplacetas("empresa","id",$id_empresa,"slogan","");