after setting up SMTP extension ,when send test mail giving error "Unable to send mail:unknown error" and in exception log gives bellow exception.

" main.CRITICAL: Unable to send mail: Unknown error {"exception":"[object] (Magento\Framework\Exception\MailException(code: 0): Unable to send mail: Unknown error at /var/www/magento/app/code/Magento/Email/Model/Transport.php:104, Laminas\Mail\Transport\Exception\RuntimeException(code: 0): Unable to send mail: Unknown error at /var/www/magento/vendor/laminas/laminas-mail/src/Transport/Sendmail.php:306)"} [] "

what would be the reason, and how could I get out of this.. Thank you.

  • login with proper gmail password and id
    – devmage
    Jun 23, 2020 at 5:36

1 Answer 1


Can you give us the SMTP parameters ? Theh, checklist : 1st : Can you send the transactional emails ? 2nd : your server configuration. Is it a VPS ? a dedicated server ? is it Linux based or Windows ? postfix up & running ? credentials ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.