Last update at :2024-03-16,Edit by888u
The built-in email function of Empire CMS uses port 25 for sending 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.
Step 2:
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 email 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 searches: host sharing, renting a server, foreign servers, mainland China site group servers, Hong Kong virtual host space, hosting, private server rental, Hong Kong hosts, Hong Kong cn2 servers, ip search,
发表评论