Hello. I love Local by flywheel.
- How Local use mailhog? Local writes a SMTP config to wp-config.php?
- 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.