1

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.

  • is email working on ur server ? – Navin Bhudiya Jan 24 '18 at 6:30
  • php email working on my server – Rathna Jan 24 '18 at 7:35
  • mail("someone@example.com","My subject",'test'); are u able to recive any email send by this php function – Navin Bhudiya Jan 24 '18 at 7:37
  • Have u configurable Mail server on Magento 2? – Amit Bera Jan 24 '18 at 8:29
1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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