Post by zigi00x » Sat Jan 23, 2021 4:59 am

Hello warriors of opencart,

I have a problem with mail, sometimes I get this error:

Code: Select all

2021-01-11 14:45:40 - PHP Warning: fsockopen (): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/******/public_html/system/library/mail/smtp.php on line 87
2021-01-11 14:45:40 - PHP Warning: fsockopen (): unable to connect to smtp. *******. Com: 587 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in / home /pcrobots/public_html/system/library/mail/smtp.php on line 87
the problem occurs when creating an order, sending the status of the order to the customer, creating an account.

an error appears on the web and this in the log.

The error is displayed randomly and max 1-2 times a day, otherwise, everything works normally and emails normally work with the current settings, only occasionally this error is displayed, for example 40 emails in a row will be sent without error.

Anyone have any idea how to debug it?

New member

Posts

Joined
Wed Aug 15, 2018 1:20 am

Post by sw!tch » Sat Jan 23, 2021 5:16 am

Some Webhosts or mail providers implement sending rate limits. Best to contact them or use a service better geared for sending mass mail such as mailgun, sendgrid, etc.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Location - USA

Post by ADD Creative » Sat Jan 23, 2021 7:56 am

"php_network_getaddresses: getaddrinfo failed" means you server couldn't perform a DNS lookup. Could be a problem with DNS on the server or you are hitting some limit. Check your sever logs or ask your host.

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Mon Jan 25, 2021 7:40 pm

zigi00x wrote:
Sat Jan 23, 2021 4:59 am
Hello warriors of opencart,
Haha! And you have my keyboard, Frodo!

zigi00x wrote:
Sat Jan 23, 2021 4:59 am
PHP Warning: fsockopen (): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/******/public_html/system/library/mail/smtp.php on line 87
Looks like one for your web host.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by EvolveWebHosting » Mon Jan 25, 2021 9:51 pm

Before contacting your hosting company, check to make sure your SMTP credentials are entered properly. If you copied and pasted your password into the field, make sure there is no space at the beginning or end of the password. If it's not working after that then contact your hosting companies support department.

Image
50% Off SSD Shared Hosting w/ cPanel
Detailed guide on how to install Opencart


User avatar
Active Member
Online

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by Romaguera » Tue Feb 09, 2021 3:22 pm

sw!tch wrote:
Sat Jan 23, 2021 5:16 am
Some Webhosts or mail providers implement sending rate limits. Best to contact them or use a service better geared for sending mass mail such as mailgun, sendgrid, myaarpmedicare etc.
Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.

Newbie

Posts

Joined
Tue Feb 09, 2021 3:17 pm
Who is online

Users browsing this forum: No registered users and 36 guests