2

My Magento 2 send an email when I register in the newsletter, but I receive that exception all time:

enter image description here

How can I solve it? Thanks

asked Jun 26, 2017 at 20:01
0

2 Answers 2

6

To send email from Magento you need to configure an email SMTP server on the web host/server. Magento uses the PHP mail() method by default, although there are extensions you can install to override this behavior.

If it's JUST the Newsletter that's not sending, and other emails like Registration and Password Reset are sending fine, then it could be some other problem and you will need to post more information.

It could be a PHP ini configuration issue with the mail function, like a bad path to sendmail, or an incorrect hostname, etc.

But as a Magento Certified Developer I assume you already know all of this? Sorry if I misunderstood your question and gave too many obvious answers.

Related posts:

answered Jun 26, 2017 at 23:27
1
  • 1
    Make sense, but my sendmail is configured as your links. It's working but my mail function returns false after sending the email. Commented Jun 27, 2017 at 15:52
0

For Magento 2.3.1 check out this bug: https://github.com/magento/magento2/issues/20033

answered Apr 25, 2019 at 7:02
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.