Skip to content

rocramer/laravel-mailcoach-postal-feedback

Repository files navigation

run-tests

Process feedback for email campaigns sent using Postal

This is an unofficial package for mailcoach.app that can process the feedback given by Postal.

Requirements

For 3.0:

  • Laravel 9.x
  • Mailcoach 5.x

For 2.0:

  • Laravel 8.x
  • Mailcoach 4.x

Setup

The package can be installed via composer:

composer require rocramer/laravel-mailcoach-postal-feedback

You need to configure an endpoint in your Postal dashboard and register your routes in your Laravel app:

Route::postalFeedback('postal-feedback');

Since Postal webhooks need to bypass Laravel's CSRF protection, be sure to list the URI as an exception in your VerifyCsrfToken middleware or list the route outside the web middleware group:

protected $except = [
    'postal-feedback',
];

To verify the signature, add following to your mailcoach.config:

'postal_feedback' => [
    'public_key' => env('POSTAL_PUBLIC_KEY'),
],

Finally, add your public key to the .env file. You can get the public key by executing postal default-dkim-record on your Postal server and copy the p parameter (without the semicolon at the end).

Restriction

This package only handles Bounces, Opens and Clicks. (Spam) complaints are not supported by Postal. Other mail delivery platforms like Amazon SES usually handle these complaints via a Feedback Loop (FBL). Postal has no mechanism to process these complaints from mail provider and link them back to their original message. Nevertheless, it is possible to route these complaints to an abuse team or to use services like Google Postmaster to have an overview about complain rates.

Postal driver for Laravel

To send emails in Laravel via Postal you can use SynergiTech/laravel-postal.

Documentation

You can view the Mailcoach documentation on the mailcoach site.

The Postal documentation can be found on Github

About

Handle feedback given by Postal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages