Use wp_mail() instead of reinventing the wheel
-
Hi support,
if you would use the “phpmailer_init” hook of WordPress’ wp_mail() function (instead of defining your own method) then dev’s had the chance to influence mail headers as well. For instance if I want to disable the XMailer variable of the PHPmailer class, I would have to hack your plugin, right? Because I cannot reach your instantiated PHPmailer class. Not so helpful and WordPress does a better job regarding to offer other plugins possibilities of change, so why not using wp_mail()?
Also modifications like AddCustomHeader(‘Precedence’, “bulk”) would be nice to run through a filter since this is not on the wishlist in every case.
Thanks, if you could agree.
The best,
Frank
- The topic ‘Use wp_mail() instead of reinventing the wheel’ is closed to new replies.