0

这是代码,它在本地主机上工作,但在实时服务器上不工作

是SMTP();我已经在实时服务器上删除它但仍然有效

    require 'phpmalier/PHPMailerAutoload.php';
    $email = new PHPMailer;
    //$email->isSMTP();
    $email->Host='smtp.gmail.com';
    $email->Port=587;
    $email->SMTPAuth=true;
    $email->SMTPSecure='tls';
    $email->Username='exmapile@gmail.com';
    $email->Password='*******';
    $email->SetFrom('exmpile@gmail.com');
    $email->AddAddress('exmpile@gmail.com');
    $email->isHtml(True);
    $email->Subject= $mail . 'Contact Form';
    $email->Body= $user .'<br>'. $phone . '<br>' . $msg;
4

0 回答 0