r-a-y/bp-reply-by-email

Inbound email provider suggestions

Opened this issue · 2 comments

r-a-y commented

Spawned from changes due to Mandrill's pricing structure, I'm going to compile a list of potential inbound providers for inclusion into RBE.

Implemented:

(Information partially updated as of January 2019. If you find inaccuracies, please let me know.)

  • SparkPost - One-month trial - first 15,000 emails free; afterwards, switches to 500 emails per month free. (Added as of commit 4d9c4ad)
  • Postmark - First 100 emails per month free on developer plan. (Added as of commit 12f2782)
    • Docs: http://developer.postmarkapp.com/developer-process-parse.html
    • Has UI dashboard for inbound activity. Only shows last 30 days of activity though. Logs email content as well.
    • Can blacklist email addresses from inbound processing in UI dashboard.
    • Needs one MX record for subdomain.
    • Inbound processing counts towards email total.
    • Sends processed emails to webhook one at a time.
  • SendGrid - One-month trial - first 40,000 emails free; afterwards, switches to 100 emails per day free. (Added as of commit 1185b93)
    • Docs: https://sendgrid.com/docs/API_Reference/Parse_Webhook/inbound_email.html
    • Has UI dashboard for inbound activity. Only logs email address and time processed though. Only shows last 3 days of activity. (Pro accounts get 30 days of activity.)
    • Needs one MX record for subdomain.
    • Inbound processing doesn't appear to count towards email total, so a free account should be sufficient.
    • Sends processed emails to webhook one at a time.

Maybe later:

(This section is outdated.)

Declined:


Info gathered by me; providers sourced from:

Hey guys,

@r-a-y I was wondering, whether this plugin is still under development and if so, maybe Mailersend could be integrated as an option? They offer 12000 emails / month free of charge, which is a great offer for small NGOs like mine. Plus they have inbound routing, so I think they could be integrated with your plugin? See here: https://www.mailersend.com/features/inbound-emails

Let me know what you think :)

Kind regards, Philip

r-a-y commented

Sorry for the late reply, @StrothiP.

Plugin is still in development, but mostly for bug fixes. As of right now, I do not plan on integrating Mailersend into the plugin.

If you have access to a developer, that person will need to create a new class to parse the inbound provider's POST response to your website. View examples of other inbound provider classes: https://github.com/r-a-y/bp-reply-by-email/tree/master/includes/classes/ (check the PHP files prefixed with bp-reply-by-email-inbound-provider.

The developer should also register their provider with this filter:

// If you've added a custom inbound provider, register it with this filter
$third_party_providers = apply_filters( 'bp_rbe_register_inbound_providers', array() );

Add a new array key with the provider short name and for the array value, add the class name for your inbound provider class. You can also load your inbound provider class on this filter as well.

For example:

function mailersend_rbe_inbound_provider( $retval ) {
	require_once FILEPATH-TO-YOUR-CUSTOM-PROVIDER-CLASS.php;

	$retval['mailersend'] = 'CLASSNAME_OF_YOUR_CUSTOM_PROVIDER_CLASS';
	return $retval;
}
add_filter( 'bp_rbe_register_inbound_providers', 'mailersend_rbe_inbound_provider' );