I cannot catch mail by mailhog

Hello. I love Local by flywheel.

  1. How Local use mailhog? Local writes a SMTP config to wp-config.php?
  2. How can I fix the problem?

I could use mailhog with wp_mail() function and it seemed to be nice.
But I cannot send an e-mail now.

wp_mail() says SMTP connection failed.

WP_Error::__set_state(array(
   'errors' =>
  array (
    'wp_mail_failed' =>
    array (
      0 => 'SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting',
    ),
  ),

I am guessing that I broke my wp-config.php so smtp server setting was changed.

Thanks.

Are you running any plugins like mailgun or other smtp related plugins? These override Wordpress’ default smtp functions, so mailhog won’t work properly.