My Site is on aws instant and I am used gmail smtp for sending mail from that but I have one sending mail error and try to solve it but not get any solution

enter image description here

This kind of error I find when I send mail throw gmail smtp in my aws setup magento2.

Could not open socket: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

I check my php info file in that open ssl was all ready enable

enter image description here

And I also try to do some code in abstract.php file

enter image description here

any one can help me how can i solve this thank you

1 Answer 1


Create The New Smpt Detail in Aws Instance and used it the aws provide you that service in just 2$ .


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.