Incompatibility with mail plugin
-
I’m using this plugin on a site where PostSMTP is used to send mails more reliably. HTTP Headers stops the plugin from using its own mailing function.
Postman: wp_mail has been declared by another plugin or theme, so you won't be able to use Postman until the conflict is resolved.
More info that may help - /[...]/wp-includes/pluggable.php:174Here’s what I think is happening after a bit of research:
PostSMTP checks
function_exists ('wp_mail')
inpost-smtp/Postman/PostmanWpMailBinder.php
before defining the function with their own mailing code. The standard WordPress mailing function does the same inwp-includes/pluggable.php
, so if no plugin defineswp_mail
with their own code beforepluggable.php
, the standard function is declared.However, HTTP Headers seems to load
pluggable.php
before PostSMTP runs, so it defines the standardwp_mail
and PostSMTP cannot overwrite it. This happens inhttp_headers_option($option)
in http-headers.php:require_once ABSPATH . WPINC . '/pluggable.php';
Is this something you can fix or provide a workaround for? Thanks!
- You must be logged in to reply to this topic.