fsockopen() Error

Discussion in 'PHP' started by cancer10, Oct 11, 2008.

  1. #1
    Hi,

    I am trying to send emails using PHP Gmailer.

    But getting this error

    Warning: fsockopen() [function.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 (markup):
    I am not able to understand what is wrong, because the same code works fine when I upload to my webhost.

    Herez Some info:
    - I am running this code from my localhost (http://127.0.0.1)
    - I am using Windows XP Pro SP2
    - Apache 2.2
    - PHP Version 5.2.4
    - allow_url_fopen and allow_url_include are turned On in PHP.ini

    Thanx in Advance
     
    cancer10, Oct 11, 2008 IP
  2. skolor

    skolor Peon

    Messages:
    15
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If I had to guess I would say its a firewall issue. You may have XP's Firewall turned on, and they probably block socket activity.
     
    skolor, Oct 11, 2008 IP
  3. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Forgot to mention that my Firewall is already Turned OFF.


    Plz help
     
    cancer10, Oct 11, 2008 IP
  4. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #4
    Maybe your web server does not support ssl. Try google OpenSSL.
     
    thuankkk, Oct 11, 2008 IP