Error sending mail
Posted: Tue Oct 17, 2017 1:04 am
I cannot get OpenCart to send an email. Every function where it should send an email fails with this error:
Emails are not sent but (so far) whatever else needs to happen works. For instance, your new account will be created, but you will not get an email and you will get an ugly error and not be told that your account was successfully created. This is also true for buying products. You aren't even told that your purchase went through, you just get an ugly error.
You can recreate this by trying to make an account here:
https://anewcreationgreetings.com/index ... t/register
I really need to get this fixed so please advise and thanks so much, in advance, for your help!
Code: Select all
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home4/cmatthewc/public_html/system/library/mail/smtp.php on line 87Warning: fsockopen(): unable to connect to anewcreationgreetings.com :465 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home4/cmatthewc/public_html/system/library/mail/smtp.php on line 87
Fatal error: Uncaught exception 'Exception' with message 'Error: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)' in /home4/cmatthewc/public_html/system/library/mail/smtp.php:90 Stack trace: #0 /home4/cmatthewc/public_html/system/library/mail.php(142): Mail\Smtp->send() #1 /home4/cmatthewc/public_html/catalog/controller/mail/register.php(44): Mail->send() #2 [internal function]: ControllerMailRegister->index('account/custome...', Array, 2) #3 /home4/cmatthewc/public_html/system/engine/action.php(79): call_user_func_array(Array, Array) #4 /home4/cmatthewc/public_html/system/engine/event.php(62): Action->execute(Object(Registry), Array) #5 /home4/cmatthewc/public_html/system/engine/loader.php(255): Event->trigger('model/account/c...', Array) #6 [internal function]: Loader->{closure}(Array, Array) #7 /home4/cmatthewc/public_html/system/engine/proxy.php(47): call_user_func_array(Object(Closure), Array) #8 /home4/cmatthewc/public_html/catalog/controller/account/register.php(22): Proxy->__call('addCu in /home4/cmatthewc/public_html/system/library/mail/smtp.php on line 90
You can recreate this by trying to make an account here:
https://anewcreationgreetings.com/index ... t/register
I really need to get this fixed so please advise and thanks so much, in advance, for your help!