Akberov
Akberov

Reputation: 164

Could not instantiate mail function in WooCommerce

I'm trying to send an email notification to user after checkout is done and order placed. I've gone through the WooCommerce email settings and set them all accordingly. But for a reason that I don't know of email couldn't be sent. I understand this is not a code related question.

...And this is the warning I get in the log plugin to check whether emails have been sent: " Could not instantiate mail function ".

enter image description here

Upvotes: 4

Views: 11312

Answers (1)

Hung Vu
Hung Vu

Reputation: 5934

This happens due to your site haven't been configured with email service provider like Google/SendGrid or SMTP. In my case, I used SMTP with the help of WP Mail SMTP plugin, and it works for me. Example configuration can be found below: enter image description here

Hope it helps

Upvotes: 7

Related Questions