Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SparkPost / Wordpress integration #20

Closed
mkurent opened this issue Mar 17, 2016 · 15 comments
Closed

SparkPost / Wordpress integration #20

mkurent opened this issue Mar 17, 2016 · 15 comments

Comments

@mkurent
Copy link

mkurent commented Mar 17, 2016

Hi there,

we are migrating several sites from Mandrill to Sparkpost. We have problem with your plugin since it does not work.

API Connection does not work
We are using API connection and sending domains are enabled in Sparkpost (both SPF and DKIM).

We have enabled Sparkpost and when we send out a test-email (from settings interface with enabled debugging) we got the following message: "Could not instantiate mail function."

WP version: 4.2.2.
PHP 5.5.9
Host: DigitalOcean
Other significant plugins: WooCommerce
NOTE: We do not have any SMTP server installed nor we have declarations made in php.ini

This is quite strange since Mandrill integration was working without problems. And yes, we first disabled Mandrill plugin before enabling Sparkpost plugin.

Contrary to API connection SMTP connection works!
If we select from a drop down SMTP connection if works perfectly fine.

But, we would like to use API connection and not SMTP.

The other problem is more Safari specific: Safari tends to populate the field from_email from overrides section with Wordpress username. This is the result of famous Safari function auto-complete. You should check your code to prevent this.

Matej

@thehungrycoder
Copy link
Contributor

Hi, thanks for reporting here. As we discussed in wp forum, can you please give a screenshot of your settings page (please ensure your privacy by stripping out private info).

@mkurent
Copy link
Author

mkurent commented Mar 17, 2016

screen shot 2016-03-17 at 11 44 03
screen shot 2016-03-17 at 11 44 19

@mkurent
Copy link
Author

mkurent commented Mar 24, 2016

Hi there!

Any chance to solve this?

@rajumsys
Copy link
Contributor

Sorry for late to attend regarding it. I failed to re-produce this issue in a DO droplet. So this is my next suggestion:

Try installing the plugin in a fresh wordpress installation (in the same box). You can install a new wordpress just in a different directory. I am suggesting this because I guess there might be other plugins overriding sparkpost's expected behaviour. This test will help us verify this case.

@mkurent
Copy link
Author

mkurent commented Mar 25, 2016

Great. Drop me your mail at: matej@calypsocrystal.com

@jpw94
Copy link

jpw94 commented Mar 25, 2016

How do I specify the temaplate?
The Mandrill plugin pulls from the account and presents a dropdown of available templates.
Is there a specific way to correctly specify the template?

@vonsch76
Copy link

vonsch76 commented Apr 6, 2016

Had the same issue. Update WP to 4.4 and it will be solved.

The issue is likely due to Sparkpost plugins' use of the HTTP API of Wordpress.

@rajumsys
Copy link
Contributor

rajumsys commented Apr 7, 2016

@vonsch76 Thanks for reporting. However, I'm still trying to understand how upgrading fix. HTTP API class is available in WordPress since v2.7.

*
 * @since 2.7.0
 */
class WP_Http {

I also tried with same version of WordPress and couldn't reproduce it.

@rajumsys
Copy link
Contributor

rajumsys commented Apr 7, 2016

@mkurent finally, i could reproduce this on digitalocean. I'm debugging into this issue and will follow up further.

Update
I used DO's 1 click wordpress app setup. I found it installs postfix by default. Once I remove that I get the above issue (could not instantiate mail function). So clearly, even though we're using sparkpost as mailer, somewhere there is a dependency with system level mailer program. I'll try to investigate it more.

You can consider installing postfix (or other mta should work too) for the time being.

@rajumsys
Copy link
Contributor

rajumsys commented Apr 8, 2016

Further update,
I've found the issue. To be little more clear, I've created a new issue about it.

@vonsch76
Copy link

vonsch76 commented Apr 8, 2016

Thanks, good news now, that the issue is spotted.

@rajumsys
Copy link
Contributor

rajumsys commented Apr 8, 2016

@mkurent can you upgrade to newest version of the plugin and see if it resolves for you.

@mkurent
Copy link
Author

mkurent commented Apr 11, 2016

@rajumsys I can confirm that with the new version I was able to send a test mail. Now we are switching spark post to production. Will report if we face any problems.

@rajumsys
Copy link
Contributor

@mkurent great to hear that. Yes, feel free to report if you face further issues. Happy sending :).

@xfechx
Copy link

xfechx commented Apr 21, 2016

I am having this issue with WP 4.5, I am getting the error "could not instantiate mail function"

maxharrisnet pushed a commit that referenced this issue Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants