wpsharks / comment-mail

A WordPress plugin enabling email subscriptions for comments.
http://comment-mail.com
GNU General Public License v3.0
8 stars 3 forks source link

Feature Request: SparkPost for RVE #265

Closed raamdev closed 7 years ago

raamdev commented 8 years ago

Mandrill has announced that it's no longer going to be free which means Comment Mail's RVE feature will soon depend on a paid-only service (see https://github.com/websharks/comment-mail/issues/240).

SparkPost, a similar service, has announced that it will "honor Mandrill’s pricing for any customer that switches to SparkPost from Mandrill". See the Mandrill Migration Guide.

I suggest that we prioritize SparkPost as a replacement for Mandrill. They have a free plan and the free plan (as far as I can tell) supports relay webhooks.

Here are the API Docs for their Relay Webhooks: https://developers.sparkpost.com/api/#/reference/relay-webhooks

yepher commented 8 years ago

If you have any questions during your migration consider reaching out on SparkPost's developer Slack channel. You can join here

There are developer there who can help answer integration questions.

raamdev commented 8 years ago

@yepher Awesome. Thanks for the tip! We use Slack at WebSharks too, so that should make things easy. :-)

JeffVark commented 8 years ago

I've been using Sparkpost since the Mandrill announcement. They have a great offer. Sparkpost would be an excellent choice for the Comment Mail's RVE feature.

kristineds commented 7 years ago

Also requested here: Private Support Ticket #14930.

jaswrks commented 7 years ago

Estimate at three days.

alexstine commented 7 years ago

Can't wait to see this.

kristineds commented 7 years ago

Also requested here: Private Support Ticket #14696.

jaswrks commented 7 years ago

Next Release Changelog:

renzms commented 7 years ago

@raamdev @jaswsinc

Hi Guys, Observed a fatal Error and the links to the documentation were not working while testing this.


@jaswsinc

Side Note, for the test domains you've setup for us, in the documentation its noted that there is no SPF Text Record or DKIM Record available. Is it possible to add the following emails to verify for SparkPost?

VERIFY EMAIL
abuse@name.domain.net 
postmaster@name.domain.net
renzms commented 7 years ago

@raamdev @jaswsinc

Hi Guys, Observed a fatal Error and the links to the documentation were not working while testing this.


Observed Behaviour: Fatal Error on all white page

Fatal error: Uncaught Error: Using $this when not in object context in /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/RveSparkPost.php on line 271 Error: Using $this when not in object context in /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/RveSparkPost.php on line 271 Call Stack: 0.0003 406200 1. {main}() /app/src/wp-admin/admin.php:0 0.0004 406680 2. require_once('/app/src/wp-load.php') /app/src/wp-admin/admin.php:31 0.0008 421040 3. require_once('/app/src/wp-config.php') /app/src/wp-load.php:39 0.0010 424600 4. require_once('/app/src/wp-settings.php') /app/src/wp-config.php:41 0.0731 3531072 5. do_action() /app/src/wp-settings.php:411 0.0731 3531472 6. WebSharks\CommentMail\Pro\Plugin->actions() /app/src/wp-includes/plugin.php:524 0.0737 3543296 7. WebSharks\CommentMail\Pro\Actions->__construct() /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/Plugin.php:1034 0.0738 3543416 8. WebSharks\CommentMail\Pro\Actions->maybeDoMenuPageActions() /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/Actions.php:41 0.0754 3712312 9. WebSharks\CommentMail\Pro\MenuPageActions->__construct() /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/Actions.php:107 0.0755 3713128 10. WebSharks\CommentMail\Pro\MenuPageActions->maybeHandle() /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/MenuPageActions.php:55 0.0853 4263568 11. WebSharks\CommentMail\Pro\MenuPageActions->saveOptions() /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/MenuPageActions.php:79 0.0855 4263568 12. WebSharks\CommentMail\Pro\Plugin->optionsSave() /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/MenuPageActions.php:99 0.1353 4504672 13. WebSharks\CommentMail\Pro\RveSparkPost::setupWebhook() /app/src/wp-content/plugins/comment-mail-pro/src/includes/classes/Plugin.php:1152

Steps to Reproduce Fatal Error

SparkPost KBA links

screen shot 2016-11-10 at 4 58 54 pm

Both links go to http://comment-mail.com/kb-article/sparkpost-rve-handler/

screen shot 2016-11-10 at 4 46 36 pm


@jaswsinc

Side Note, for the test domains you've setup for us, in the documentation its noted that there is no SPF Text Record or DKIM Record available. Is it possible to add the following emails to verify for SparkPost?

VERIFY EMAIL
abuse@name.domain.net 
postmaster@name.domain.net
jaswrks commented 7 years ago

Using $this when not in object context

Fixed in dev branch. Thank you.

jaswrks commented 7 years ago

@renzms Great catch BTW. Thanks! :-)

jaswrks commented 7 years ago

@renzms The KBA is still in draft format here, for now: https://github.com/websharks/comment-mail-kb/issues/27

jaswrks commented 7 years ago

@renzms writes...

that there is no SPF Text Record or DKIM Record available

This would be for your Outbound Sending Domain, which is not necessary to configure for the purpose of testing Comment Mail. So you can just ignore that message. Having said that, I did try to set up the @wpsharks.net domain for this purpose, but that appears to be probelmatic when it comes to SparkPost Sending Domains, due to the fact that they do not allow sub-domains under the same top-level domain to be used across multiple test accounts.

:star: What I was able to do is setup the MX record for an Inbound Domain, which is what's needed to test Comment Mail. For the SparkPost RVE Reply-To address in Comment Mail you can use:

rve@spark-renz.wpsharks.net

See also: https://github.com/websharks/comment-mail-kb/issues/27

renzms commented 7 years ago

What I was able to do is setup the MX record for an Inbound Domain, which is what's needed to test Comment Mail. For the SparkPost RVE Reply-To address in Comment Mail you can use:

Thanks! I will build again using the changes you made on the dev branch and test.

renzms commented 7 years ago

@jaswsinc

Testing the latest dev build and following the instructions found in: websharks/comment-mail-kb#27

Good news is I no longer receive the fatal error message.

However,...

I received the following error prompt:

RVE Error: The Comment Mail™ plugin was unable to complete the integration with SparkPost. When attempting to create a Relay Webhook the SparkPost API said:
resource conflict
jaswrks commented 7 years ago

@renzms Can you post a screenshot of the RVE config fields that returned this error please?

renzms commented 7 years ago

@jaswsinc

Sure

RVE Panel

screen shot 2016-11-10 at 10 57 51 pm

SparkPost Dashboard

screen shot 2016-11-10 at 10 53 42 pm

renzms commented 7 years ago

@raamdev @jaswsinc

Comments via RVE are now working.

I can confirm this is working now with the latest dev build. Thanks @jaswsinc for clearing the Webhook from SparkPost so I could get this working!

raamdev commented 7 years ago

Comment Mail v161118 has been released and includes changes from this GitHub Issue. See the v161118 announcement for further details.


This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#265).