fabacab / wp-pgp-encrypted-emails

:closed_lock_with_key: :e-mail: Encrypts WordPress emails using OpenPGP or S/MIME with a familiar API.
https://wordpress.org/plugins/wp-pgp-encrypted-emails/
GNU General Public License v3.0
39 stars 10 forks source link

Emails sent with WS Form not encrypted #49

Closed 13robin37 closed 2 years ago

13robin37 commented 2 years ago

WP PGP Encrypted Emails works great out of the box without a lot of configuration for almost all form plugins I've tested. The only one which doesn't encrypt mails is WS Form. My guess is that the code from WS Form is loaded after this plugin (because the plugins are loaded in alphabetical order) and therefore the encryption process won't work.

I know that you can set priorities for WP filters and hooks and tested a bit with the code on a staging site but was unable to make it work. Is anyone familiar with increasing the priority for this plugin?

13robin37 commented 2 years ago

Found the error myself. Just for reference, if somebody else has this issue:

Within the send email action you need to remove the "to" Name which the email should be delivered to. Otherwise the user account with a PGP cert isn't recognized.