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, 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.
Thanx Postman. I wonder can we use Postman SMTP with PopUp by Supsystic?
@yakamozi, not until the author fixes the code.
@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'));
}
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.
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!
Hello.
Please contact us in our internal support using this form http://supsystic.com/contact-us/ – and we will help you to resolve this issue.