Webnaranja  
Enviar correo con exchange con autenticacion NTLM
Lenguajes de Programación Lenguajes de Programación: Lenguajes Php, Java, Javascript, Html, XML, Unix
Reply to topic   Printer Friendly Page    Forum Index - Proyectos Web - Lenguajes de Programación
View previous topic :: View next topic  
Author Message
alvarojj7
Nuevo
Nuevo


Joined: Jul 04, 2012
Posts: 3

PostPosted: Tue Dec 04, 2012 2:41 pm    Post subject: Enviar correo con exchange con autenticacion NTLM Reply with quote

Hola a todos,

Necesito enviar correos en php mediante un servidor exchange con autenticcion ntlm, he intentado enviarlo con phpmailer que segun tengo entendido desde la version 5.2 soporta autenticacion NTLM, tengo el siguiente codigo:

<?php
$mail = new PHPMailer(true);
$mail->IsSMTP();
try {
$mail->Host = "mail.dominio.com";
$mail->SMTPDebug = 2;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Host = "mail.dominio.com";
$mail->Port = 587;
$mail->Username = "usuario@dominio.com";
$mail->Password = "*****";
$mail->SetFrom('correo@dominio.com', 'Nombre');
$mail->AddAddress("receptordelcorreo@gmail.com","Nombre de persona");
$mail->Subject = 'Asunto del correo';
$mail->AltBody = 'Caso que no soporte HTLM';
$mail->MsgHTML('Texto HTML');
$mail->AddAttachment("images/imagen.jpg", "imagen.jpg");
$mail->Send();
echo "Message Sent OK</p>\n";
} catch (phpmailerException $e) {
echo $e->errorMessage();
} catch (Exception $e) {
echo $e->getMessage();
}

?>

Per me lanza el siguiente mensaje de error:

SMTP -> FRO SERVER:220 mail.domicio.com Microsoft ESMTP MAIL Seervice ready at Mon, 3 Dec 2012 12:36:00 -040
SMTP -> FROM SERVER: 250-mail.dominio.co HELLO[10.0.0.15] 250-SIZE 10485760 250 -PIPELINING 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250 250-8BITMIME 250-BINARYMIME 250 CHUNKING
SMTP -> FROM SERVER:500 5.3.3. Unrecognized command
SMTP -> ERROR STARTTLS not accepted from server: 500 5.3.3. Unrecognized command
SMTP -> FROM SERVER:250 2.0.0 Resetting

Languaje string failed to load: tls


Alguien podria darme alguna idea?


Back to top
View user's profile
Display posts from previous:   
 Reply to topic   Printer Friendly Page     Forum Index - Proyectos Web - Lenguajes de Programación All times are GMT + 1 Hour
Page 1 of 1




RSS: Lenguajes de Programación RSS
Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Diseño web, bases de datos, lenguajes de programación, comunidades... todo lo necesario para construir tu sitio web.
The logos and trademarks used on this site are the property of their respective owners. We are not responsible for comments posted by our users, as they are the property of the poster.
Aviso Legal - Privacidad
Construyendo la web 2.0
Interactive software released under GNU GPL, Code Credits, Privacy Policy

Orange Theme by WebNaranja.com more Info.