grandeljay / wordpress-mailjet-integration

A simple Mailjet integration for WordPress.
https://wordpress.org/plugins/grandeljay-mailjet-integration/
GNU Affero General Public License v3.0
2 stars 2 forks source link

Support for sending all WordPress emails (not only signup forms) #15

Open jessuppi opened 1 month ago

jessuppi commented 1 month ago

Hello and thanks for this open source plugin! I really appreciate you releasing this publicly.

I briefly tested this and couldn't get it working with generic WordPress emails or email testing tools... I apologize if this is a bad place to ask this, but is this plugin only meant to work with signup forms?

For example, does it not override the default wp_mail() function in order to manage all emails via Mailjet API?

Ref: https://github.com/eewee/wordpress-mailjet-plugin

If possible I might suggest adding this capability so that a single plugin (yours) could be installed to power all email sending on a WordPress website.

grandeljay commented 1 month ago

Hey @jessuppi!

[...] is this plugin only meant to work with signup forms?

Yeah! I just needed a simple plugin to collect sign ups from my site for newsletters. Everything I found available was either outdated or bloated with features which I was not interested in.

For example, does it not override the default wp_mail() function in order to manage all emails via Mailjet API?

Correct, this is currently not possible with this plugin. However, if you would like to add this functionality yourself, I would be happy to review a pull request on it.

If possible I might suggest adding this capability so that a single plugin (yours) could be installed to power all email sending on a WordPress website.

I haven't used/needed this plugin for a while now so I cannot justify spending large amounts of time on it to add such a feature but If you like, I can look at #16, make a fix and a new plugin release. That is, if this plugin still has any use for you after reading this.

jessuppi commented 1 month ago

Thanks for your prompt response @grandeljay

Ah that makes sense. It would probably take me too long to add that functionality right now, but I just really liked that you support Git Updater with very lightweight code, as there does not seem to be any other plugin in the wild currently that supports using Mailjet's API... there are a few but seem to use SMTP relay only.

I will keep looking around, thanks anyway!