Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 381
Akberov Avatar asked Oct 25 '25 05:10

Akberov


1 Answers

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

like image 85
Hung Vu Avatar answered Oct 26 '25 22:10

Hung Vu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!