1. Configure .env and config/mail.php (both use the same email information)
2. Generate the Mail class and point it to the view
3. Write in the controller that sends the email Enter the sending email code.
4. Use composer to install the Guzzle HTTP library
but it doesn’t work! ! ! !
Connection could not be established with host smtp.qq.com [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]
No matter it is qq, 126 or 163
Need advice~! ~~
曾经蜡笔没有小新2017-05-16 16:51:35
Let’s see if it’s useful to you, your question is too unclear
http://www.zhoujiping.com/scr...
为情所困2017-05-16 16:51:35
The key information in the error report is:
Name or service not known
Please check your DNS settings.