-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not open socket #30
Comments
@bfsmith07 ... check to see if you port is open .... see #24 |
telnet smtp.gmail.com 465 |
Hi, I have the same problem. I have Open SSL installed and enabled. $ telnet smtp.gmail.com 465 OpenSSL support enabled Is there any way I can find out what is causing this? Regards, |
What does |
That does not return anything and I get the email in my spam folder. |
Helped for me: solution for smtp servers (including gmail):
vendor/magento/zendframework1/library/Zend/Mail/Protocol/Abstract.php function _connect($remote)
for self-signed SSL certificates:
vendor/magepal/magento2-gmailsmtpapp/Controller/Adminhtml/Test/Index.php:73 |
Can you please explain in detail how you fixed this issue? |
@hubaig : Additional details added to previous comment. Is the current statement: pretty clear and understandable? |
I have the same issue: Telnet works, I have other 1.x Magento's on the same server using ASchroder Gmail SMTP extension, that works fine. Trying to find a solution for 2.x I tried @coresh solution and that does nothing. Coresh you should update your comment to have a better location: vendor/magento/zendframework1/library/Zend/Mail/Protocol/Abstract.php:267 I get this error with TLS: Help! |
@Truxxx : comment - updated. Solution worked for me. Please try again attentively |
@coresh Thanks, I missed the ctx, however now i'm getting the error: "Incorrect authentication data " and I know my credentials are correct. I have also tried using different gmail and google apps accounts. |
Try manually fix for testing purpose using browser (only for testing by browser)
For production usage should be: 'password' => $password, |
@coresh before I even posted I tried different browsers, I also tried setting the username and password First I just tried the password per your instructions, but then I tried the username as well. It always comes back with the same error, I tried different Gmail/Google Apps accounts as well. |
Is there some sort of error log I can check? |
@Truxxx could you check another smtp server (e.g: your own smtp server) instead of the google smtp server and trace smtp log (tail -n 1000 /var/log/maillog and etc... on the smtp server side)? |
@coresh Thanks for the response! Have your suggested edits be committed? I didn't need to change anything it already had the code when I looked at it. Anyways I have tried with another SMTP host, bluehost, bluehost will allow me to send SSL or NON SSL however I get the same error with SSL: "Incorrect authentication data" Without SSL I get this error: I haven't had a chance to try it on the SMTP server that's on the local server itself, its not enabled by default and I have to change somethings around before and set it up before I can test it that way. |
Take a look at http://stackoverflow.com/questions/6275535/php-error-php-network-getaddresses-getaddrinfo-failed-while-getting-informat ... try pinging the host |
@Truxxx, could you try again with php 7.*? my current php version:
|
The description states this can be used with "Other" SMTP. I'm trying to leverage GoDaddy smtp. Is this possible? I'm getting timeout requests on my efforts. |
@pmagony ... Can you provide the exact error message you are getting? |
@srenon sure, I've tried several configurations, using a Gmail account and Gmail settings, as well as GoDaddy settings and in both cases I've received the following error: Result: Connection timed out Gmail Settings: Godaddy Settings: |
@pmagony ... connection time out normally mean something is blocking the connect to gmail server. ( i have not use godaddy servers in years and back then you had to do "something special to send email") eg https://www.godaddy.com/help/specifying-an-email-address-for-the-php-form-mailer-508 Was Magento sending emails before installing this extension? What is the output of the following command
|
Did anyone ever find a working solution? I tried the fix from @coresh and it worked fine at first. Now i'm getting a new error: Warning: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known in vendor/magento/zendframework1/library/Zend/Mail/Protocol/Abstract.php on line 268. |
@coresh I'm using PHP Version 5.6.30, ill trying switching PHP version and let you know. |
@coresh I installed PHP Version 7.0.15, I'm having the same issues, I have even uninstalled the manual install and did a clean install through composer, still no go. Incorrect authentication data |
@coresh I ended up doing this: http://magento.stackexchange.com/questions/92860/magento-2-smtp-settings and now it works. |
@Truxxx Great! |
I have tried both SSL and TLS.
I have tried both smtp.gmail.com and smtp.googlemail.com
I have tried enabling "Allow less secure apps" in my gmail account
I am using this on a Fedora 24 box, fully updated.
PHP version 5.6.27
ZEND engine 2.6.0
Magento 2.1.2
Nothing seems to work, always get the same error "Could not open socket". Am I missing something? Please let me know if there's something else I should try to get this working.
Thanks.
The text was updated successfully, but these errors were encountered: