首先必须打开 fsockopen 函数 在主机管理后台->高级环境设置 -> PHP.ini 设置 -> PHP函数设置 -> 启用 fsockopen 阿里云虚拟主机使用PHPMailer发送邮件