LaravelPackages.net
Acme Inc.
Toggle sidebar
jfunu/laravel-ses-manager

Logs SES bounces and complaints for Laravel app

8.082
0
About jfunu/laravel-ses-manager

jfunu/laravel-ses-manager is a Laravel package for logs ses bounces and complaints for laravel app. It currently has 0 GitHub stars and 8.082 downloads on Packagist. Install it with composer require jfunu/laravel-ses-manager. Discover more Laravel packages by jfunu or browse all Laravel packages to compare alternatives.

Last updated

laravel-ses-manager

Logs AWS Simple Email Service bounces and complaints for Laravel app

Setup

composer require Megaverse/laravel-ses-manager
php artisan migrate
  • Add the routes to your controller and off you go
// api.php
Route::post('/webhooks/ses/bounce', [Megaverse\LaravelSesManager\Controllers\SESWebhookController::class, 'bounce']);
Route::post('/webhooks/ses/complaint', [Megaverse\LaravelSesManager\Controllers\SESWebhookController::class, 'complaint']);
  • Map the hooks in your SES dashboard to the your application routes.

Usage

Use Megaverse\LaravelSesManager\Eloquent\BlackListItem is the model for blacklisted emails.

// check if email is blacklisted
$blackListItem = Megaverse\LaravelSesManager\Eloquent\BlackListItem::query()
  ->whereNotNull('blacklisted_at')
  ->where('email', $email)
  ->first();

// whitelist email while keeping it in the history
$blackListItem->delete();

// remove email and remove it from the history
$blackListItem->forceDelete();

Star History Chart