🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

How to Enable the fsockopen Function on Alibaba Cloud Shared Hosting to Send Emails via SMTP

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.
  1. Log in to the Alibaba Cloud shared hosting management interface;
  2. In the advanced environment settings, click on PHP.INI settings;
  3. In the PHP function settings, find the fsockopen setting and select Enable;
  4. 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 isWP SMTP, and the setup method is as follows:
  1. Log in to QQ Mail and select Settings;
  2. Go to the Account interface and find POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV Service;
  3. Enable SMTP service and generate an authorization code;
  4. Copy the authorization code to the WP SMTP plugin interface;
  5. Refer to the image below for the WP SMTP plugin interface configuration.
wordpress SMTP插件设置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.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step instead.

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about Website Building Coaching Service
🔒

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.

×
二维码

Scan to Follow