Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPMailer echo's from successful sent email

Tags:

php

phpmailer

Hello I finally got PHPMailer to work with Google but now I am finding out that I am getting this output to the screen after the message has been sent.

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 

I was wondering if there was any way to remove this output so the users don't see it?

like image 763
Chris Avatar asked Jan 21 '23 21:01

Chris


1 Answers

Set the $phpmailer->SMTPDebug property to 0, you probably left it on debug (at least, I detect some work has been done from the 'finally'). http://phpmailer.worxware.com/index.php?pg=properties

like image 122
Wrikken Avatar answered Jan 31 '23 06:01

Wrikken