IMAP\Connection is already closed when running bin/console mauticđź“§fetch

Thanks for sharing this workaround it’s really helpful! Replacing imap_ping() with is_resource($this->imapStream) on line 394 in Mailbox.php solved the “IMAP\Connection is already closed” error for me as well on Mautic 6.0.4.
For more context, you can also check this related discussion: Mauticfetch command not working – Mautic 6.0.2.

1 Like