Announcement

Collapse
No announcement yet.

SMTP unable to connect error.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SMTP unable to connect error.

    Hello,
    I have developed an application that sends email. When I run the application, I am getting the following error.

    PHP Code:
    stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://smtp.gmail.com:465 (Connection refused) 
    What is wrong with the application /environment?

  • #2
    Can be all kind of things, varying from wrong userid/password, portnumber etc. Are you sure you have set the right values?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      I checked settings again, they are correct and works in Outlook.

      Comment


      • #4
        Alguien pudo solucionar esto tengo exactamente el mismo problema, hace dias.

        Comment


        • #5
          Originally posted by milind.wakale View Post
          Hello,
          I have developed an application that sends email. When I run the application, I am getting the following error.

          PHP Code:
          stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://smtp.gmail.com:465 (Connection refused) 
          What is wrong with the application /environment?
          Can you post your code?

          Comment


          • #6
            you may want to make a small hand coded php mail program first to test if it works. Sometimes mail fails because your openssl isnt set up properly.

            Comment

            Working...
            X