alexknowshtml / postmark-approved-wordpress-plugin

A Wordpress Plugin that overrides wp_mail() to use Postmark for transactional email delivery
5 stars 4 forks source link

Using postmark with add_filter('wp_mail') #3

Open adnanoner opened 10 years ago

adnanoner commented 10 years ago

Hi,

I'm using a (bit of a hacky) plugin that overwrites the default wp_mail functionality with

apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );

However, since postmark also rewrites wp_mail, the (hacky) plugin is unable to rewrite the wp_mail functionality. Does anyone have an idea on how to fix this?

adnanoner commented 10 years ago

I've just implemented it myself using the API, way easier :).