Title: Email Problem
Last modified: August 24, 2016

---

# Email Problem

 *  Resolved [yakamozi](https://wordpress.org/support/users/yakamozi/)
 * (@yakamozi)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/email-problem-14/)
 * Hi. We’re trying to install and use this fantastic plugin. But we have a major
   problem about emails. We’ve installed an SMTP email plugin (POstman SMTP) and
   it seems to be working fine.
 * Unfortunately we couldn’t get started the email service in PopUp. It gives an
   error like this: “**Could not instantiate mail function****.”**
 * What can be the problem? How can we solve tihs?
 * Thanx in Advance
 * Yakamozi Team
 * [https://wordpress.org/plugins/popup-by-supsystic/](https://wordpress.org/plugins/popup-by-supsystic/)

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

 *  [Jason Hendriks](https://wordpress.org/support/users/jasonhendriks/)
 * (@jasonhendriks)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/email-problem-14/#post-6167314)
 * I tried installing this myself and I get this warning/ajax failure when trying
   to add a new pop-up, which is unfortunately preventing me from reproducing the
   above problem :
 * > PHP Notice: bp_setup_current_user was called **incorrectly**. The current user
   > is being initialized without using $wp->init().
 * So I went hunting to see what the initialization issue is. I’m wondering, [@supsysticcom](https://wordpress.org/support/users/supsysticcom/),
   what code like this is for :
 *     ```
       if(!function_exists('wp_mail'))
           framePps::_()->loadPlugins();
       add_filter('wp_mail_content_type', array($this, 'mailContentType'));
       $result = wp_mail($to, $subject, $message, implode($eol, $headersArr));
       ```
   
 * Why not let WordPress initialize normally before attempting to use the mail function?
 * > “Could not instantiate mail function.”
 * Is a PHPMailer error, so somehow this plugin bypassed Postman’s loader and fell
   back to the default WordPress mailer.
 *  Thread Starter [yakamozi](https://wordpress.org/support/users/yakamozi/)
 * (@yakamozi)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/email-problem-14/#post-6167327)
 * Thanx Postman. I wonder can we use Postman SMTP with PopUp by Supsystic?
 *  [Jason Hendriks](https://wordpress.org/support/users/jasonhendriks/)
 * (@jasonhendriks)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/email-problem-14/#post-6167490)
 * [@yakamozi](https://wordpress.org/support/users/yakamozi/), not until the author
   fixes the code.
 * [@supsysticcom](https://wordpress.org/support/users/supsysticcom/), this code
   prevents SMTP plugins from attaching to wp_mail – it changes the order of the
   WordPress bootstrap:
 *     ```
       if(!function_exists('wp_mail'))
           framePps::_()->loadPlugins();
       ```
   
 * Please change your wp_mail() call **to execute on the init action**, and remove
   the call to loadPlugins(). Also remove the filter once your call to wp_mail is
   done.
 *     ```
       add_action ( 'init', array($this, 'popup_send_mail'));
       function popup_send_mail() {
           add_filter('wp_mail_content_type', array($this, 'mailContentType'));
           $result = wp_mail($this->to, $this->subject, $this->message, implode($this->eol, $this->headersArr));
           remove_filter('wp_mail_content_type', array($this, 'mailContentType'));
       }
       ```
   
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/email-problem-14/#post-6167495)
 * Hello.
    This was done to make plugin work faster – without full WordPress load.
   I think we will rebuild this in one of our next release, so problem with SMTP
   will be fixed too.
 *  [cakequeen](https://wordpress.org/support/users/cakequeen/)
 * (@cakequeen)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/email-problem-14/#post-6167521)
 * Hi,
    I’m having a similar problem with my WordPress mail and I have the pro version
   of Supsystic’s Gallery plugin (which I LOVE and paid for so I don’t want to ditch
   that.)
 * Will this be addressed in any gallery plugin updates? I don’t get my contact 
   form inquiries sent to my main email so now I have to log into WordPress a few
   times a day to check it.
 * Thanks!
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/email-problem-14/#post-6167522)
 * Hello.
    Please contact us in our internal support using this form [http://supsystic.com/contact-us/](http://supsystic.com/contact-us/)–
   and we will help you to resolve this issue.

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

The topic ‘Email Problem’ is closed to new replies.

 * ![](https://ps.w.org/popup-by-supsystic/assets/icon-256x256.png?rev=1684296)
 * [Smart Popup by Supsystic](https://wordpress.org/plugins/popup-by-supsystic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-by-supsystic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-by-supsystic/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-by-supsystic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-by-supsystic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-by-supsystic/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * 6 replies
 * 4 participants
 * Last reply from: [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/email-problem-14/#post-6167522)
 * Status: resolved