3

enter image description here

I have this problem with subscription of newsletter but the address is successfully stored in the Database.

I have magento 2.2.2 fresh installation on server and allows php to send emails.

system log says

main.CRITICAL: Exception message: Unable to send mail. Trace: #0 /var/www/html/projectName/vendor/magento/module-newsletter/Controller/Subscriber/NewAction.php(136): Magento\Newsletter\Model\Subscriber->subscribe('test@domain...')

Mail sending settings enter image description here

Can someone help me on fix this error.

4
  • is email working on ur server ? Commented Jan 24, 2018 at 6:30
  • php email working on my server
    – Rathna
    Commented Jan 24, 2018 at 7:35
  • mail("[email protected]","My subject",'test'); are u able to recive any email send by this php function Commented Jan 24, 2018 at 7:37
  • Have u configurable Mail server on Magento 2?
    – Amit Bera
    Commented Jan 24, 2018 at 8:29

1 Answer 1

2

It is s genius error as your mail server is not working. Your mail server is not able to fire mail. Please check ur server setting.

1
  • Sorry, The problem was that I didn't realize that magento uses php-mail function.
    – Rathna
    Commented Feb 5, 2018 at 8:37

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.