wp_mail overwrite bug
-
In the plugin wp_mail gets overwritten when SMTP is enabled.
The original wp_mail will return true whenever the mail is being send succesfully. Since the plugin used its mail script within anrequire
function the correct response is not being given.This can be fixed by doing the following:
Within the file:
/wp-content/plugins/woocommerce-sendinblue-newsletter-subscription/includes/wc-sendinblue.php
Instead of:require plugin_dir_path( __FILE__ ) . 'function.wp_mail.php';
The contents of the file should be used within the function(
wp_mail_native()
).This will cause the function
wp_mail_native()
to return true/false instead of “”.
- The topic ‘wp_mail overwrite bug’ is closed to new replies.