phpmailer class error send mail
Hi,
When I try to send an mail from phpmailer class there is an errror : unable to connect to xxx.xxx.xxx.xxx
I try to send through external server domian
The domain has configured a remote server, and I read this link: IsSMTP();
$mail->SMTPAuth = true;
$mail->Host = "xxx.xxx.xxx.xxx"; // SMTP a utilizar.
$mail->Username = "correo@dominio.com[/EMAIL]"; // Correo completo a utilizar
$mail->Password = "111"; //
$mail->Port = 25; //
$mail->From = "correo@dominio.com[/EMAIL]"; //
$mail->AddAddress("correo@dominio.com[/EMAIL]"); //
$mail->IsHTML(true); //
$mail->Subject = "Mensaje nuevo desde web.net"; // Este es el titulo del email.
$body = "Nombre: $nombre.
Tel""fono: $telefono.
Email: $correo.
Mensaje: $texto.
"; $mail->Body = $body; // $exito = $mail->Send(); // ?>
Can anyone help me ? Thanks
Tel""fono: $telefono.
Email: $correo.
Mensaje: $texto.
"; $mail->Body = $body; // $exito = $mail->Send(); // ?>
Can anyone help me ? Thanks
-
IF I disable this option Tweak Settings --> Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak) [?] then phpmailer works ... is there another solution to send email through phpmailer to external server without disable this options? 0 -
Hello, You can disable the option you referred to, or consider installing a third-party application such as CSF (SMTP_BLOCK) which offers the same type of protection, but with the ability to whitelist certain IP addresses. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments