Envio de Email

Não estou conseguindo enviar email via php usando o scriptcase ele apresenta o seguinte erro:
“stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
stream_socket_client(): Failed to enable crypto
stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error)”

"Uncaught Swift_TransportException: Connection could not be established with host smtp.gmail.com [ #0] in "

usando o PHPMailer-master ele trava o servidor.