I am trying to: Send a confirmation mail
Link to a page where the issue can be seen: enlace oculto
This is the follow-up to my earlier ticket https://toolset.com/forums/topic/notification-e-mail-not-send/ but I can't post there anymore.
https://toolset.com/forums/topic/notification-e-mail-not-send/
I used the code from that ticket in wp-config and do see some errors in the log, but nothing seems to be related to Toolset.
In wp-mail logging I get the error: Could not instantiate mail function.
Does this ring a bell? I hope you can help.
Regards,
Petran
Hi Petran,
Thank you for contacting us and sorry to learn that the issue still persists.
Unfortunately, the error "Could not instantiate mail function" is very generic and can be caused by a number of reasons, as explained in these articles:
enlace oculto
enlace oculto
Since this was established in the last ticket, that the issue is server related, I'll recommend raising it with your web host. It is possible that the server's outgoing email policy is either too strict or allows very few emails, within a specific period.
As a quick fix, you can install "WP Mail SMTP by WPForms" plugin, through which you can route your website's outgoing emails to any third-party mailing service including Google, which supports SMTP:
https://wordpress.org/plugins/wp-mail-smtp/
If your web host is not able to track down and resolve the issue, you can either switch to a different host or keep using a third-party email provider using SMTP, as a permanent fix.
I hope this helps and please let me know how it goes.
regards,
Waqar
In the end it was a problem with PHP mail function. Sending through SMTP solved it.
Thanks for your help.