mail's smtp method to..? ..

connect to ssl://smtp.gmail.com and send an email but it faisl saying

Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) (code: -1, response: )]

I got PHP from Yast and did not build it. I have installed the php openssl extension from yast as well. Is there a way to simply enable OpenSSL now after the fact or do I have to go back to source and build PHP myself with openssl in configure?