Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate console messages #54

Open
barbmc opened this issue Aug 15, 2016 · 1 comment
Open

Duplicate console messages #54

barbmc opened this issue Aug 15, 2016 · 1 comment

Comments

@barbmc
Copy link

barbmc commented Aug 15, 2016

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?

@fakhamatia
Copy link

Does anybody fix this problem?
Screenshot from 2019-12-08 19-00-13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants