I am now using Opencart 2.3.0.2, and trying to host it on Hostinger. Unfortunately, I have problems in the configuration of hosting email account on opencart. Under the mail protocol tab, only Mail works, whereas SMTP can't work for the hosting email account. The following msg will appear after submitting the contact form if I choose SMTP:
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/u729687566/public_html/test/system/library/mail.php on line 167Warning: fsockopen(): unable to connect to ssl://mx1.hostinger.com :587 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/u729687566/public_html/test/system/library/mail.php on line 167
Fatal error: Uncaught Exception: Error: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) in /home/u729687566/public_html/test/system/library/mail.php:170 Stack trace: #0 /home/u729687566/public_html/test/catalog/controller/information/contact.php(25): Mail->send() #1 /home/u729687566/public_html/test/system/engine/action.php(51): ControllerInformationContact->index() #2 /home/u729687566/public_html/test/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #3 /home/u729687566/public_html/test/system/engine/action.php(51): ControllerStartupRouter->index() #4 /home/u729687566/public_html/test/system/engine/front.php(34): Action->execute(Object(Registry)) #5 /home/u729687566/public_html/test/system/engine/front.php(29): Front->execute(Object(Action)) #6 /home/u729687566/public_html/test/system/framework.php(103): Front->dispatch(Object(Action), Object(Action)) #7 /home/u729687566/public_html/test/system/startup.php(124): require_once('/home/u72968756...') #8 /home/u729687566/ in /home/u729687566/public_html/test/system/library/mail.php on line 170
Below is my setting:
Mail Protocol : SMTP
Mail Parameters : -f+my email address
SMTP Hostname: ssl://mx1.hostinger.com (provided by the hostinger)
SMTP Username: My username
SMTP Password: My password
SMTP Port: 587 (provided by the hostinger)
SMTP Timeout: 5
Anyone here using Hostinger could offer advice? Thanks in advance!!!
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
Thanks. I at last found out that this is the server which imposes Sender Policy Framework (SPF) that blocks the access. I at last changes to another host, and email problem is well solved.
lavieverte wrote: ↑Sun Aug 27, 2017 4:55 pmThanks. I at last found out that this is the server which imposes Sender Policy Framework (SPF) that blocks the access. I at last changes to another host, and email problem is well solved.
Opencart Developer - For custom work and support contact @ webcorvo@gmail.com
Who is online
Users browsing this forum: No registered users and 210 guests