when contact us page submit but email not received but messages display
Thanks for contacting us with your comments and questions. We'll respond to you very soon.
in debug.log I get this error.
main.CRITICAL: Unable to send mail: Unknown error {"exception":"[object] (Magento\\Framework\\Exception\\MailException(code: 0): Unable to send mail: Unknown error at /public_html/vendor/magento/module-email/Model/Transport.php:104, Zend\\Mail\\Transport\\Exception\\RuntimeException(code: 0): Unable to send mail: Unknown error at /public_html/vendor/zendframework/zend-mail/src/Transport/Sendmail.php:305)"} []
in exception.log I get this error.
main.CRITICAL: Invalid header value detected {"exception":"[object] (Magento\\Framework\\Exception\\MailException(code: 0): Invalid header value detected at /public_html/vendor/magento/module-email/Model/Transport.php:104, Zend\\Mail\\Header\\Exception\\RuntimeException(code: 0): Invalid header value detected at /public_html/vendor/zendframework/zend-mail/src/Header/HeaderValue.php:112)"} []