Web Hosting sends emails in the fsockopen mode, while WordPress sends emails in the steam_connect_client mode. For WordPress to use a Web Hosting instance to send an email, you must modify the program configuration file
Follow these steps to modify
Access website files via FileZilla and locate
Download the file to your local computer.
Open the file and find the following code:
Note: You can open the file by code editors, such as Notepad++.
$this->smtp_conn = @stream_socket_client( $host . “:” . $port, $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $socket_context );
- Modify the code as the following:
$this->smtp_conn = @fsockopen($host,$port,$errno,$errstr,$timeout);
- Save the modified file and upload it to FTP site by FileZilla.
WordPress should now be able to send email by Web Hosting instance.
If this tutorial cannot help you solve the problem, open a ticket.