Most shared hosting services cannot send emails directly, so we need to rely on SMTP email services. However, Alibaba Cloud shared hosting cannot use SMTP directly; the fsockopen function must be enabled first to use the SMTP sending feature.
How to Enable the fsockopen Function
If you are using Alibaba Cloud shared hosting, log in to the shared hosting management interface and follow the steps below to enable it.
- Log in to the Alibaba Cloud shared hosting management interface;
- In the advanced environment settings, click on PHP.INI settings;
- In the PHP function settings, find the fsockopen setting and select Enable;
- Configure the SMTP sending plugin to implement the email sending function.
How to Configure SMTP to Send Emails
There are many plugins on WordPress that support sending emails via SMTP. Refer to the following article:
Currently, the plugin used by Naibabiji for sending emails is
WP SMTP, and the setup method is as follows:
- Log in to QQ Mail and select Settings;
- Go to the Account interface and find POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV Service;
- Enable SMTP service and generate an authorization code;
- Copy the authorization code to the WP SMTP plugin interface;
- Refer to the image below for the WP SMTP plugin interface configuration.

If you are using a foreign server, you can consider using Gmail or the following SMTP service providers with free plans, as this will speed up email delivery.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.