Home >Backend Development >PHP Problem >php SMTP server configuration method

php SMTP server configuration method

藏色散人
藏色散人Original
2020-07-25 09:41:474414browse

php SMTP setting method: first register a QQ mailbox for sending emails from the website; then log in to the backend administrator interface; then find "SMTP Service Settings in System Global Settings"; finally fill in the SMTP login username and SMTP Just log in with your password.

php SMTP server configuration method

Recommended: "PHP Tutorial"

Preparation:
Register one QQ email used for sending emails from the website (or use an existing QQ email):
http://zc.qq.com/chs/index.html?type=1&app_id=11005
The requirements are as follows :
The mailbox must have POP3/SMTP service, IMAP/SMTP service, and Exchange service enabled. Setting steps: Settings—Account—POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV service—Select three services—Save Change

Start configuration (here, take mlecms system as an example):
First, log in to the background administrator interface - system settings ——SMTP service settings in the system global settings

Detailed settings: fill in the outbox address with the QQ email address that enables the three services; fill in the SMTP login user name and SMTP login password with the QQ email address you wrote Account number and login password, the rest do not need to be changed. In addition, you can choose to send a test email and fill in the email address to receive the email for testing.
If the test fails to send emails, the following prompt will appear:

Solution:
1. Check whether the configuration parameters of the mailbox and SMTP server are filled in correctly;
2. Check whether the openssl extension in php.ini is enabled, and check whether it is enabled through the phpinfo() method. Steps to enable: 1. Remove the semicolon in front of extension=php_openssl.dll in php.ini and restart the Apache server; 2. Copy the three files libeay32.dll, ssleay32.dll, and libmcrypt.dll in the PHP installation directory to C: \Windows\System32 directory.


When the email test is successful, the following prompt will appear:

At this point, congratulations on successfully setting up the SMTP server.

The above is the detailed content of php SMTP server configuration method. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn