PHP邮件电子邮件未发送

时间:2019-12-26 17:59:53

标签: php phpmailer

我正在尝试使用PHP邮件程序脚本发送电子邮件,但电子邮件未发送。帮助我摆脱这种情况。

require_once( 'mailer/mailer/PHPMailerAutoload.php' );
        $mail = new PHPMailer();
        $mail->IsSMTP();
        $mail->SMTPDebug = false;
        $mail->SMTPAuth = true;
        $mail->SMTPSecure = "ssl";
        $mail->Host = "mail.antivirusakash.com";
        $mail->Port = 587;
        $mail->AddAddress( $email );
        $mail->Username = "no-reply@antivirusakash.com";
        $mail->Password = "**************";
        $mail->SetFrom( 'no-reply@antivirusakash.com', 'Fizday' );
        $mail->AddReplyTo( "no-reply@antivirusakash.com", "Fizday" );
        $mail->Subject = $subject;
        $mail->MsgHTML( $message );
        $mail->Send(); 

0 个答案:

没有答案