Hello, everyone has problem sending email through phpmailer and I get this error
my code is:
<br/>
$mail = new PHPMailer;<br/>
$mail->ClearAddresses();<br/>
$mail->IsSMTP();<br/>
$mail->SMTPDebug = 1;<br/>
$mail->IsHTML(true);<br/>
$mail->Port = 25;<br/>
$mail->Host = 'mail.dominio.com';<br/>
$mail->SMTPAuth = true;<br/>
$mail->Username = '[email protected]';<br/>
$mail->Password = 'mipassword';<br/>
$mail->SetFrom('[email protected]', 'Prueba');<br/>
$mail->Subject = 'Correo de Prueba';<br/>
$mail->SMTPSecure = 'tls';<br/>
$mail->AltBody = '';<br/>
$mail->CharSet = 'UTF-8';<br/>
$mail->MsgHTML('Mensaje de Prueba');<br/>
$mail->AddAddress('[email protected]');<br/>
if (!$mail->Send()) {<br/>
echo "Error: ".$mail->ErrorInfo;<br/>
} else {<br/>
echo "Mensaje enviado correctamente";<br/>
}<br/>
and the error is this:
<br/> SMTP -> ERROR: AUTH not accepted from server: 504 5.7.4 Unrecognized authentication type<br/>
SMTP -> ERROR: RCPT not accepted from server: 550 5.7.1 Unable to relay<br/>
SMTP Error: The following recipients failed: [email protected] Error: SMTP Error: The following recipients failed: [email protected]<br/>
I thank you in advance