Title: SMTP errors
Last modified: September 6, 2020

---

# SMTP errors

 *  [blopster](https://wordpress.org/support/users/blopster/)
 * (@blopster)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/smtp-errors-2/)
 * I installed the plugin. Sending invites seemed to work but then I checked and
   nothing was being sent or received.
 * I edited the SMTP settings and then I got:
    There has been a critical error on
   your website. Please check your site admin email inbox for instructions.
 * Valid settings don’t work. I don’t know how to proceed.

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

 *  Thread Starter [blopster](https://wordpress.org/support/users/blopster/)
 * (@blopster)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/smtp-errors-2/#post-13369060)
 * There didn’t seem to be anything in the logs and I didn’t get any e-mail to the
   admin account.
 *  [ecruz165](https://wordpress.org/support/users/ecruz165/)
 * (@ecruz165)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/smtp-errors-2/#post-13569908)
 * I’m seeing errors in my logs as well. However, my logs state the following: PHP
   Fatal error: Uncaught TypeError: Argument 1 passed to Invitation_Based_Registrations_Admin::
   invitation_based_registrations_configure_smtp() must be an instance of PHPMailer,
   instance of PHPMailer\\PHPMailer\\PHPMailer given, called in /nas/content/live/
   iymny/wp-includes/class-wp-hook.php on line 287
 * I confirmed my smtp config with another program and the smpt host port, username,
   and password are correct.
 * My hosting provider is WPEngine and I’m using WP version 5.5.1, PHP 7.4 and I
   configured the Invite Users::SMTP Setup.
    -  This reply was modified 5 years, 5 months ago by [ecruz165](https://wordpress.org/support/users/ecruz165/).
    -  This reply was modified 5 years, 5 months ago by [ecruz165](https://wordpress.org/support/users/ecruz165/).
    -  This reply was modified 5 years, 5 months ago by [ecruz165](https://wordpress.org/support/users/ecruz165/).
    -  This reply was modified 5 years, 5 months ago by [ecruz165](https://wordpress.org/support/users/ecruz165/).
 *  [ecruz165](https://wordpress.org/support/users/ecruz165/)
 * (@ecruz165)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/smtp-errors-2/#post-13574095)
 * I was able to replicate the issue locally using LocalWP. PHPMailer is confirmed
   working. Investigating further. Seems to be a WordPress compatibility issue. 
   Seems this plugin was last tested up to: 5.5.
 *  [ecruz165](https://wordpress.org/support/users/ecruz165/)
 * (@ecruz165)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/smtp-errors-2/#post-13574884)
 * Hosting: WPEngine
    WordPress: 5.5.1 PHP: 7.4.1
 * I solved the issues encountered.
 * ISSUE #1: Uncaught TypeError:
    SYMPTOM: Critical error // Edit wp-content/plugins/
   invitation-based-registrations/admin/class-invitation-based-registrations-admin.
   php // On line #2 Add line >> use PHPMailer\PHPMailer\PHPMailer;
 * ISSUE #2: Exception: Message body empty
    SYMPTOM: No emails were being sent. 
   OBSERVATION: in file: wp-content/plugins/invitation-based-registrations/admin/
   partials/invitation-based-registrations-admin-display.php DETAIL: $emailbody 
   = get_option(“invbr_email_body”); resulted as empty WORK AROUND: Navigate to 
   WP-Admin > Invite Users -> EMail Templates -> [click] Update Template.
 * After clicking Update Template get_option(“invbr_email_body”) is populated and
   plugin works. I suspect that any web server would require the workaround done
   once after starting up the process.
    -  This reply was modified 5 years, 5 months ago by [ecruz165](https://wordpress.org/support/users/ecruz165/).
    -  This reply was modified 5 years, 5 months ago by [ecruz165](https://wordpress.org/support/users/ecruz165/).
 *  [wpshrike](https://wordpress.org/support/users/wpshrike/)
 * (@wpshrike)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/smtp-errors-2/#post-14141146)
 * Hi,
 * Thank you for pointing out this.
 * We will release a fix very soon for this.

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

The topic ‘SMTP errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/invitation-based-registrations.svg)
 * [Invitation Based Registrations](https://wordpress.org/plugins/invitation-based-registrations/)
 * [Support Threads](https://wordpress.org/support/plugin/invitation-based-registrations/)
 * [Active Topics](https://wordpress.org/support/plugin/invitation-based-registrations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/invitation-based-registrations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/invitation-based-registrations/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [wpshrike](https://wordpress.org/support/users/wpshrike/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/smtp-errors-2/#post-14141146)
 * Status: not resolved