Title: Cannot send encrypted email to Array
Last modified: August 31, 2016

---

# Cannot send encrypted email to Array

 *  Resolved [boblmartens](https://wordpress.org/support/users/boblmartens/)
 * (@boblmartens)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/)
 * I get this error message when using this plugin with Formidable Forms:
 * `[Wed Feb 24 08:16:40.447272 2016] [php5:error] [pid 5806] [client 172.16.1.145:
   53049] Cannot send encrypted email to Array, referer: https://mlc-wels.edu/continuing-
   education/registration/alhso/`
 * Any help in tracking down where I should be looking for this issue would be great.
   Thanks!
 * [https://wordpress.org/plugins/wp-pgp-encrypted-emails/](https://wordpress.org/plugins/wp-pgp-encrypted-emails/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [boblmartens](https://wordpress.org/support/users/boblmartens/)
 * (@boblmartens)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102338)
 * Here is what I sent to Formidable Pro:
 * > I get the following error message in my error log when using Formidable Pro
   > and WP PGP Encrypted Emails together:
   >  trim() expects parameter 1 to be string, array given
   > I make an edit to the wp-includes/class-wp-user.php file on line 201 to remove
   > the trim call and then I’ll get this error message from WP PGP Encrypted Emails:
   >  Cannot send encrypted email to Array
   > So I’m wondering if Formidable Pro is doing anything funky here or if I should
   > be barking up another tree. Thanks!
 * Here is their response:
 * > The wp_mail function is setup to accept either strings or arrays for several
   > parameters. You can find more info on that here:
   >  [https://developer.wordpress.org/reference/functions/wp_mail/](https://developer.wordpress.org/reference/functions/wp_mail/)
   > It sounds like the encryption plugin isn’t setup to handle those arrays. Maybe
   > you can contact them and ask them to make adjustments to allow for both?
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102364)
 * Can you confirm that [Formidable](https://wordpress.org/plugins/formidable/) 
   is experiencing the same issue? I do not have Formidable Pro and cannot get it
   because it costs money, but if the free version is based on the same codebase
   I can look into that. I just want to make sure I’m on the right track before 
   I try. 🙂 Thanks for reporting the issue!
 *  Thread Starter [boblmartens](https://wordpress.org/support/users/boblmartens/)
 * (@boblmartens)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102367)
 * Totally understand. I have a test instance I can get up and running and see if
   I can get it to work. I’ll report back soon.
 *  Thread Starter [boblmartens](https://wordpress.org/support/users/boblmartens/)
 * (@boblmartens)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102381)
 * Same thing from a test site running 4.4.2 with the free version of Formidable
   and 0.3.0 of your plugin (since 0.4.0 threw me the syntax error that I started
   an issue on at GitHub).
 * `PHP Warning: trim() expects parameter 1 to be string, array given in /srv/www/
   htdocs/wp-includes/class-wp-user.php on line 201, referer: http://blogs.mlc-wels.
   edu/bits-to-bytes/test-page/`
 *  Thread Starter [boblmartens](https://wordpress.org/support/users/boblmartens/)
 * (@boblmartens)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102382)
 * Also, the email notification is sent, but it is not encrypted.
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102387)
 * Cool, I will have a look ASAP. Can you add this issue to the GitHub tracker, 
   too?
 *  Thread Starter [boblmartens](https://wordpress.org/support/users/boblmartens/)
 * (@boblmartens)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102392)
 * I will do that. Thanks!
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102446)
 * Thanks for adding this to the GitHub issue tracker; I will mark this “resolved”
   as it seems to be a bug and should be tracked there as such. Resolution will 
   be to update to a later version of the plugin after I release an update.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Cannot send encrypted email to Array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-pgp-encrypted-emails.svg)
 * [WP PGP Encrypted Emails](https://wordpress.org/plugins/wp-pgp-encrypted-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pgp-encrypted-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pgp-encrypted-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pgp-encrypted-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pgp-encrypted-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pgp-encrypted-emails/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Meitar](https://wordpress.org/support/users/meitar/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-encrypted-email-to-array/#post-7102446)
 * Status: resolved