chromephp
chromephp copied to clipboard
Duplicate console messages
I have the following code
<?php $emailarray = array("[email protected]"); require_once('ChromePhp.php'); foreach($emailarray as $row) { $mail->addAddress($row); if ($mail->send()) { ChromePhp::log("Email sent to $row"); } else { ChromePhp::log("Email failed to $row - $mail->ErrorInfo"); } $mail->clearAddresses(); } ChromePhp::log("All Emails sent"); ?>
But I get the messages twice like this
Email sent to [email protected] All Emails sent Email sent to [email protected] All Emails sent
Any idea why this is happening?
Does anybody fix this problem?