fettlebox Posted May 9, 2015 Share Posted May 9, 2015 Hi - we've just set up a new store but are getting an error when testing the email. All settings confirmed as correct & the email works using the same settings in an email client.Has anyone any clues what may be the issue please? SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)SMTP connect() failed. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 9, 2015 Share Posted May 9, 2015 php_network_getaddresses: getaddrinfo is being given to SMTP->connect() in the file /classes/phpMailer/class.smtp.php to be used as host:port.But these phrases are not being generated by anything in the CubeCart code.In fact, a google search shows this to be a case where the web server box cannot get any DNS resolver to answer the question, "What is the IP address of this domain name?"In other words, your server admin guy would need to update the resolvers in /etc/resolv.conf, maybe to use to public resolvers? EX:nameserver 8.8.8.8nameserver 8.8.4.4 Quote Link to comment Share on other sites More sharing options...
fettlebox Posted May 10, 2015 Author Share Posted May 10, 2015 Thnaks. I've bounced it back to the server guys & they can't find an issue but have recompiled apache & php for good measure. I've used the email details from my older v5.2.16 installation in the v6 installation & that errors as well. Quote Link to comment Share on other sites More sharing options...
fettlebox Posted May 10, 2015 Author Share Posted May 10, 2015 They changed the outgoing smtp host from mail.mydomain.co.uk to an IP address. That's fixed it but i don't know why!Thanks for your assistance Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 2, 2015 Share Posted June 2, 2015 They changed the outgoing smtp host from mail.mydomain.co.uk to an IP address. That's fixed it but i don't know whyAs Brian said, the problem was with some configuration on your server or within you DNS zone file so that mail.mydomain.co.uk isnt being translated to an IP address - therefore entering the IP address "solves" the problem for email but you will still have the underlying issue.You said this was a new store and you had a 5.2.16 store - do both exist on the same server and does the 5.2.16 store still work correctly for email ?Ian Quote Link to comment Share on other sites More sharing options...
fettlebox Posted June 24, 2015 Author Share Posted June 24, 2015 Sorry for the late reply. Yes - both on the same server. My older store works fine with it's own email details. I'm wondering if it was possibly due to the domain for the new store still being new at the time - maybe dns hadn't resolved? Dunno if that applies to email like it does web addresses. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 24, 2015 Share Posted June 24, 2015 I marked this as Resolved, but feel free to add any information you may find out about what the original issue was. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.