Smtp zf2 - stream_socket_client () - Debian Wheezy

0

Good morning people.

I've been having a problem for a few days now and have tried everything. I'm using Zend 2 and trying to send an email through an account I have in gmail. It should be something extremely simple, but the email is not sent at all. As Zend suppresses the error by using an @, to see it I had to edit the library by removing it so the error presented is as follows:

Warning: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known

So there I went after making such a function work. I researched a lot and found several things that said I would solve the problem all to no avail.

I also tried to check something in php.ini and it still does not work. I've tried all tips from this link and none of them worked. That is, I no longer have the slightest idea how to solve this problem.

Another detail is that I rode the same project on another machine with the same OS as mine and it works normally. Use Debian Wheezy

/ o \ Oh! And now? Who can defend me? rsrs

Thank you in advance, thank you very much. =)

    
asked by anonymous 10.01.2015 / 13:32

1 answer

0

The problem was that instead of using the smtp.gmail.com address I was using smtp.google.com . Simple lack of attention.

But thank you to those who lost a little time reading my question rsrs

    
15.01.2015 / 12:33