Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/01/2009, 02:20
hitmank
 
Fecha de Ingreso: febrero-2008
Mensajes: 14
Antigüedad: 16 años, 2 meses
Puntos: 0
Conexión a EXCHANGE

Saludos,

Intento conectarme a EXCHANGE mediante SSL, con la siguiente configuración:

Código:
$emailsmtphost      =   'mail.xxxxxx.com:587';      // Sets the SMTP host. You can also specify a different port than 25 by using
                                          // this format: [hostname:port] (e.g. 'smtp1.example.com:25').

$emailsmtpuser      =   '[email protected]';               // SMTP authorisation username - only set this if your server requires authorization - if you set it you HAVE to set a password too
$emailsmtppassword  =   'xxxxxxx';               // SMTP authorisation password - empty password is not allowed
$emailsmtpssl       =   'ssl';               // Set this to 'ssl' or 'tls' to use SSL/TLS for SMTP connection

Y al intentar enviar el mail, me tira el siguiente error:

Warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267) in C:\wamp\www\classes\phpmailer\class.smtp.php on line 122

Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in C:\wamp\www\classes\phpmailer\class.smtp.php on line 122

Warning: fsockopen() [function.fsockopen]: unable to connect to tls://mail.xxxxxxx.com:587 (Unknown error) in C:\wamp\www\classes\phpmailer\class.smtp.php on line 122



En cambio, si hago lo mismo pero conectandome a gmail mediante el puerto 465, conecta a la perfección y me deja enviar el email. ¿Alguien tiene alguna idea? También he probado con el puerto 465 en mi servidor pero noi hay forma.


Saludos y gracias.