警告:fputs()要求参数1为资源,在第215行的C:\ xampp \ htdocs \ JOBPORTAL1 \ employer \ public_html \ class.smtp.php中给出整数 SMTP错误:无法进行身份验证。邮件程序错误:SMTP错误:无法验证
我在215行的代码是
public function Authenticate($username, $password) {
// Start authentication
fputs($this->smtp_conn,"AUTH LOGIN" . $this->CRLF);
$rply = $this->get_lines();
$code = substr($rply,0,3);
if($code != 334) {
$this->error =
array("error" => "AUTH not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4));
if($this->do_debug >= 1) {
echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF . '<br />';
}
return false;
}
我在这里遇到错误请帮我解决此错误