Mensajes de error de correos
This commit is contained in:
@@ -194,7 +194,11 @@ try{
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
MandaCorreos::enviarCorreo($db, $asunto, $texto, $user->facultad["facultad_id"], MandaCorreos::COORDINADOR);
|
if(!MandaCorreos::enviarCorreo($db, $asunto, $texto, $user->facultad["facultad_id"], MandaCorreos::COORDINADOR)){
|
||||||
|
echo "ERROR Correo<br>";
|
||||||
|
//header("Location: ".$pag."?error=2");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
header("Location: ".$pag."?ok=0");
|
header("Location: ".$pag."?ok=0");
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ class Mailer{
|
|||||||
if ($mail->Send()) {
|
if ($mail->Send()) {
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
|
echo $mail->ErrorInfo;
|
||||||
echo "Error al enviar correo";
|
echo "Error al enviar correo";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,9 +77,10 @@ class MandaCorreos{
|
|||||||
if($_ENV['DB_NAME'] == "paad_pruebas" || self::PRUEBAS){
|
if($_ENV['DB_NAME'] == "paad_pruebas" || self::PRUEBAS){
|
||||||
$asunto = "PRUEBAS-".$asunto;
|
$asunto = "PRUEBAS-".$asunto;
|
||||||
}
|
}
|
||||||
Mailer::enviarCorreo($to, $asunto, $texto, true);
|
return Mailer::enviarCorreo($to, $asunto, $texto, true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user