T
T
Triglav772019-10-01 14:13:02
PHPMailer
Triglav77, 2019-10-01 14:13:02

How to remove information from PHPMailer?

I send the letter, everything seems to be sent normally, but information like
2019-10-01 11:09:15 appears on top CLIENT -> SERVER: EHLO begemott.ru
2019-10-01 11:09:15 CLIENT -> SERVER: AUTH LOGIN
2019- 10-01 11:09:15 CLIENT -> SERVER:
2019-10-01 11:09:15 CLIENT -> SERVER:
2019-10-01 11:09:15 CLIENT -> SERVER: MAIL FROM:
2019-10- 01 11:09:15 CLIENT -> SERVER: RCPT TO:
2019-10-01 11:09:15 CLIENT -> SERVER: DATA
2019-10-01 11:09:15 CLIENT -> SERVER: Date: Tue, 1 Oct 2019 14:09:15 +0300
2019-10-01 11:09:15 CLIENT -> SERVER: To: [email protected]
2019-10-01 11:09:15 CLIENT -> SERVER: From: Begemot
2019-10-01 11:09:15 CLIENT -> SERVER: Subject:=?Windows-1251?B?x+Dq4OcguTogOTUxNSAtINHg7CDv7iDx5eHlIPHi7ukg8e7h8fLi5e3t?=
2019-10-01 11:09:15 CLIENT -> SERVER:=?Windows-1251 ?B?++kgd3d3LmJlZ2Vtb3R0LnJ1?=
2019-10-01 11:09:15 CLIENT -> SERVER: Message-ID:
2019-10-01 11:09:15 CLIENT -> SERVER: X-Mailer: PHPMailer 6.0.3 ( https://github.com/PHPMailer/PHPMailer)
2019-10-01 11:09:15 CLIENT -> SERVER: MIME-Version: 1.0
2019-10-01 11:09:15 CLIENT -> SERVER: Content- Type: text/html; charset=Windows-1251
2019-10-01 11:09:15 CLIENT -> SERVER: Content-Transfer-Encoding:
8bit

$mail = new PHPMailer();

        $mail->SetLanguage('ru', '../lib/language/');
        $mail->ClearAddresses();
        $mail->ClearAttachments();
        $mail->CharSet = 'Windows-1251';
        $mail->IsHTML(true);
              
        $mail->IsSMTP();
        $mail->Host       = 'smtp.yandex.ru';
        $mail->SMTPDebug  = 1;
        $mail->Port       = 465;
        $mail->SMTPSecure = 'ssl';
        $mail->SMTPAuth   = true;
        $mail->Username   = '[email protected]';
        $mail->Password   = 'Password   ';

        $mail->AddAddress('[email protected]');
        $mail->From     = '[email protected]';
        $mail->FromName = 'site';
        $mail->Sender   = $mail->From;
          
          
        $mail->Subject = $subject;
        $mail->Body = $html;    
        $res = $mail->Send();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2019-10-01
@ThunderCat

$mail->SMTPDebug = 1;
comment out or put 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question