Skip to main content
How to skip output display after mail sent through php mailer
How to skip output display after mail sent through php mailer
Change this line of code
$mail->SMTPDebug = 2; // It may be 1
to
$mail->SMTPDebug = 0;
PHPMailer has a part of code where you set the type of debug messages as well as the output. For example:
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 2;
//Ask for HTML-friendly debug output
$mail->Debugoutput = 'html';
The first line sets the level of messages, the second states how to provide the output.
Comments
Post a Comment