1. First, you need to install phpstudy and open the built-in extension
2.phpstudy’s appache will automatically restart and php.ini will be automatically modified, as shown below
3. Find the sendmail_path in the picture above folder, open send_mail.ini, and modify the following configurations. Here, take qq mailbox as an example
4. Then you can use @mail to send emails in the program. Specific parameter usage Please Baidu
The above introduces how phpstudy uses the built-in sendmail extension to send emails, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.