PHPMailer no funciona en mi servidor #2580
Unanswered
AntonioHC-Adfin
asked this question in
Q&A
Replies: 2 comments
-
Please read the troubleshooting guide. It's very likely your hosting provider is blocking outbound SMTP. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Gracias, el problema era que en el servidor usaba un PHP antiguo, lo he actualizado y solucionado. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
En Localhost funciona perfectamente, pero cuando lo subo a mi servidor, no funciona, dice "ESTA PAGINA NO FUNCIONA"
HTTP ERROR 500
La prueba que estoy haciendo es:
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;
require 'phpmailer/src/exception.php';
require 'phpmailer/src/phpmailer.php';
require 'phpmailer/src/smtp.php';
$mail = new PHPMailer(true);
try {
} catch (Exception $e) {
echo 'Mensaje ' . $mail-> ErrorInfo;
}
?>
Beta Was this translation helpful? Give feedback.
All reactions