Title: unexpexted error occurredArray
Last modified: August 31, 2016

---

# unexpexted error occurredArray

 *  [berkleegrad](https://wordpress.org/support/users/berkleegrad/)
 * (@berkleegrad)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/)
 * plug sounds as if it would be exactly what I’m looking for to connect WordPress
   to my mailman list. But, I am getting the error below on the version I am running
   now.
 * `An unexpected error occurredArray ( [list_name] => Groove411 [mailman_url] =
   > https://blah.org/mailman/listinfo/groove411 [list_password] => password )`
 * any suggestions on a proper fix?
 * thanks in advance, -Rick
 * [https://wordpress.org/plugins/contact-form-with-mailman/](https://wordpress.org/plugins/contact-form-with-mailman/)

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

 *  Plugin Author [GrumpyToaster](https://wordpress.org/support/users/grumpytoaster/)
 * (@grumpytoaster)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135731)
 * Hi Rick, sorry it took me a few days to get on here. The message “An unexpected
   error occurred” happens after the form is submitted. What is happening in the
   background is the plugin is using the wp_mail() function to send out a thank 
   you email.
 *     ```
       // If email has been process for sending, display a success message
               if ( wp_mail( $to, $subject, $message, $headers ) ) {
                   echo '<div>';
                   echo '<p>Thanks for contacting me, expect a response soon.</p>';
                   echo '</div>';
               } else {
                   echo 'An unexpected error occurred';
               }
       ```
   
 * I would recommend you have a look at your WordPress install and make sure it 
   is able to send out emails. I would also recommend you have a look at the PHP
   error logs on the server. It’s possible wp_mail() could be failing because of
   the mail not functioning correctly on the server.
 * You may want to check out this plugin: [https://wordpress.org/plugins/easy-wp-smtp/](https://wordpress.org/plugins/easy-wp-smtp/)
   It may help.
 * I’m going to update the plugin and give that error a more descriptive message.
 * Thanks,
 * Jeff
 *  Thread Starter [berkleegrad](https://wordpress.org/support/users/berkleegrad/)
 * (@berkleegrad)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135732)
 * Greetings Jeff,
 * super big thank you for your reply!
 * Wanted to mention that I was getting the above error when form first instantiates
   on the page. This before sending 😉
 * I’ve update to where I am point the URL and now I am getting the following error
   when the page opens… `Array ( [list_name] => Groove411 [mailman_url] => [https://pathto/mailman/admin/groove411](https://pathto/mailman/admin/groove411)[
   list_password] => blahblah )
 * I have left the page up so you can see the error ( I have PURPOSEFULLY included
   the wrong password and path as it is reflected on the page)
 * test site
    [](http://www.2016.groovetherapy.us/subscribe/)
 * again, thank you for taking the time to reply.
 * best regards, -Rick
 *  Thread Starter [berkleegrad](https://wordpress.org/support/users/berkleegrad/)
 * (@berkleegrad)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135733)
 * opps, the above closing has the link to the site.
 * [Test link](http://www.2016.groovetherapy.us/subscribe/)
 *  Plugin Author [GrumpyToaster](https://wordpress.org/support/users/grumpytoaster/)
 * (@grumpytoaster)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135734)
 * Hi Rick, I just pushed a new update for the plugin. Let me know if that fixes
   the issue.
 * Jeff
 *  Thread Starter [berkleegrad](https://wordpress.org/support/users/berkleegrad/)
 * (@berkleegrad)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135738)
 * Hey Jeff,
 * Thank you for your help. We are making progress.
 * I updated the plug in and the results are encouraging. The form is not echoing
   back the password and path +1 awesome. Upon testing, I did receive the confirmation
   email that the form was completed; However, there was no input into the mailman
   list.
 * I am guessing I may have an incorrectly configured the mailman list url in my
   set-up? The url is (slightly altered) [https://myhost.list.net/mailman/admin/groove411](https://myhost.list.net/mailman/admin/groove411).
   Should it be another URL?
 * Gentle reminder > [Test Link](http://www.2016.groovetherapy.us/subscribe/)
 * I suppose I should mention that my host has the list on a different server than
   my site domain – does that make a difference?
 * Again, I want to say thank you. I do appreciate your help AND the time you have
   devoted to helping me solve this issue…
 * Best Regards, -Rick
 *  Thread Starter [berkleegrad](https://wordpress.org/support/users/berkleegrad/)
 * (@berkleegrad)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135739)
 * Hey Jeff,
 * Success! I discovered that I need the correct URL to input the subscribing info!
   Which in my case turned out to be the url below (of course changed just a bit
   😉 )
 * [https://mylist.host.net/mailman/admin/groove411/members/add](https://mylist.host.net/mailman/admin/groove411/members/add)
 * Again, thank you for your time and attention and Great support to make this happen.
 * For future versions, wondering if you thought some sort of captcha would be a
   good thing?
 * best regards, -Rick
 *  Plugin Author [GrumpyToaster](https://wordpress.org/support/users/grumpytoaster/)
 * (@grumpytoaster)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135740)
 * Excellent!! I’m happy to hear it’s working for you now. I’ll have a look at adding
   a captcha in the next version. Thanks for the suggestion.
 * Jeff

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

The topic ‘unexpexted error occurredArray’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-with-mailman.svg)
 * [Contact Form with Mailman](https://wordpress.org/plugins/contact-form-with-mailman/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-with-mailman/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-with-mailman/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-with-mailman/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-with-mailman/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-with-mailman/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [GrumpyToaster](https://wordpress.org/support/users/grumpytoaster/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/unexpexted-error-occurredarray/#post-7135740)
 * Status: not resolved