修改 /wp-includes/class-smtp.php

  
202-208 行的位置,查找到下面的代码:

$socket_context = stream_context_create($options);
$this->smtp_conn = @stream_socket_client(
$host . ":" . $port,
$errno,
$errstr,
$timeout,
STREAM_CLIENT_CONNECT,
$socket_context
);

修改为:$this->smtp_conn = @fsockopen($host,$port,$errno,$errstr,$timeout);