Last update at :2024-03-13,Edit by888u
The built-in email function of Chinese CMS uses port 25 to send by default, but most current servers block port 25, so many current mailboxes use port 465 and use SSL links. For example, QQ mailbox, Tencent corporate mailbox.
This resulted in the Empire CMS being unable to send even after it was configured.
Use the following method to solve the problem, it is effective in personal testing with first-class materials
Step one:
Make sure the server has port 465 open.
Second step:
Modify php.ini to find extension=php_openssl.dll and remove the ";" sign in front, as shown in the figure below:
After saving, restart IIS or Apache or Nginx.
Step three:
Open the POP3/SMTP service of qq mailbox and obtain the important "authorization code". This authorization code is used as the password to log in to the email. Take QQ mailbox as an example. For other mailboxes, check whether an authorization code is required and whether the SSL port is 465
Step 4:
Open the e/class/class.smtp.php file
Add "ssl://" before $host at about line 62 (Imperial CMS7.2 version), please do not ignore the period before "ssl://".$host
Before modification:
After modification:
Step 5:
Just configure the email information in the background of Empire CMS, take Tencent corporate mailbox as an example:
Note that if it is a QQ mailbox, you must use the authorization code to log in, and you cannot use the mailbox password.
Tips:
Personal mailboxes usually have restrictions. It is recommended to use corporate mailboxes. There are free corporate mailboxes, such as Tencent corporate mailbox and Alibaba corporate mailbox.
Recommended site search: US server, ip proxy free version, Chinese international domain name, Singapore server, virtual host purchase website ip address query mysql virtual host, http proxy ip, how to check ip address, server hosting,
发表评论