Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/07/2008, 20:33
Avatar de thebestboy2671
thebestboy2671
 
Fecha de Ingreso: enero-2008
Mensajes: 138
Antigüedad: 16 años, 4 meses
Puntos: 1
Exclamación Enviar e-mail usando Swift Mailer

Hola que tal a todos, de repente piensen que porqué uso el Swift Mailer si puedo usar la función mail o la clase phpmailer, la razón es porque no logro mandar algún mensaje desde mi ordenador con ninguna de las dos, entonces probando con esta última opción, me sale el siguiente error:

Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'The SMTP connection failed to start [tls://smtp.gmail.com:465]: fsockopen returned Error Number 16 and Error String 'Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?'' in C:\AppServ\www\practicas\Swift-3.3.3-php5\lib\Swift\Connection\SMTP.php:309 Stack trace: #0 C:\AppServ\www\practicas\Swift-3.3.3-php5\lib\Swift.php(216): Swift_Connection_SMTP->start() #1 C:\AppServ\www\practicas\Swift-3.3.3-php5\lib\Swift.php(101): Swift->connect() #2 C:\AppServ\www\practicas\ejemplo.php(9): Swift->__construct(Object(Swift_Connection_SMTP)) #3 {main} thrown in blablabla

Entonces navegando por Google me encontré en este enlace lo que parece ser una respuesta, en el comentarios Nº17, en el punto #3 dice que al ver el archivo info.php debo tener esto:

" You should have as “Registered Stream Socket Transports” the “tls” and “ssl” protocols, if not then your php configuration obviously cannot understand address like “tls://smtp.gmail.com:465″ "

Gran problema ya que a mi me aparecen estos dos: tcp, udp.
Ahora mi pregunta es cómo cambiar estos valores. Alguna idea. Gracias y saludos.
__________________
Si te he ayudado con mis conocimientos, añádeme algo de Karma :P