Skip to content

Commit

Permalink
Switch debug output according to SAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Nov 4, 2017
1 parent b6eadbe commit b6316bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ public function __construct($exceptions = null)
if ($exceptions !== null) {
$this->exceptions = (boolean)$exceptions;
}
//Pick an appropriate debug output format automatically
$this->Debugoutput = (strpos(PHP_SAPI, 'cli') !== false ? 'echo' : 'html');
}

/**
Expand Down

0 comments on commit b6316bb

Please sign in to comment.