PHPMailer echo来自成功发送的电子邮件

Chr*_*ris 4 php phpmailer

您好我终于让PHPMailer与Google合作了,但现在我发现消息发送后我将这个输出发送到屏幕上.

SMTP -> FROM SERVER:220 mx.google.com ESMTP f34sm21891943qco.35
SMTP -> FROM SERVER: 250-mx.google.com at your service, [76.28.109.170] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES
SMTP -> FROM SERVER:250 2.1.0 OK f34sm21891943qco.35
SMTP -> FROM SERVER:250 2.1.5 OK f34sm21891943qco.35
SMTP -> FROM SERVER:354 Go ahead f34sm21891943qco.35
SMTP -> FROM SERVER:250 2.0.0 OK 1276700936 f34sm21891943qco.35 
Run Code Online (Sandbox Code Playgroud)

我想知道是否有任何方法可以删除此输出,以便用户看不到它?

Wri*_*ken 8

$phpmailer->SMTPDebug属性设置为0,您可能将其保留在调试中(至少,我检测到一些工作已经从' finally '完成).http://phpmailer.worxware.com/index.php?pg=properties