Home Website News Articles Standard Post

Standard Post

Method to Enable the fsockopen Function on Alibaba Cloud (Wanwang) Shared Hosting to Send Emails via SMTP

Most virtual hosts cannot send emails directly, so we need to use SMTP mail service. However, HiChina's virtual hosts cannot directly use SMTP to send emails; you need to enable the fsockopen function before using SMTP. How to enable fsockopen function If you are using HiChina's virtual host, enter the virtual host management...

Published on December 7, 2019 About 2 minutes read

Most shared hosting services cannot send emails directly, so we need to rely on SMTP email services. However, Alibaba Cloud (Wanwang) shared hosting cannot use SMTP to send emails directly; the fsockopen function must be enabled first to use the SMTP sending function.

How to Enable the fsockopen Function

If you are using Alibaba Cloud (Wanwang) 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 (Wanwang) 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 services;
  3. Enable the SMTP service, then generate an authorization code;
  4. Copy the authorization code to the WP SMTP plugin interface;
  5. Refer to the image below for configuration in the WP SMTP plugin interface.

wordpress SMTP插件设置

If you are using an overseas server, you may consider using Gmail or the following SMTP service providers with free plans, which can improve email sending speed.

Rate this article post
Previous Free WordPress Multi-purpose Business Theme: Corp Continue reading content around the same timeline. Next 15 Advanced Uses of wp-config.php Unknown Even to WordPress Veterans View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: