rickdbcn/filament-email

Log all outbound emails you send through your Filament application

v1.3.1 2024-04-27 20:43 UTC

README

68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f66696c616d656e742d656d61696c2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d7269636b6462636e25324666696c616d656e742d656d61696c267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d4c6f672b656d61696c732b696e2b796f75722b46696c616d656e742b70726f6a656374266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads Snyk Security License

Log all outgoing emails in your Laravel project within your Filament panel. You can also resend emails with 1-click in case your recipient hasn't received your email.

Version Compatibility

Plugin Filament Laravel PHP
1.x 3.x 10.x 8.x
1.x 3.x 11.x 8.2 | 8.3

Installation

You can install the package via composer:

composer require rickdbcn/filament-email

Publish and run the migrations with

php artisan vendor:publish --tag="filament-email-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-email-config"

Register the plugin through your panel service provider:

->plugin(\RickDBCN\FilamentEmail\FilamentEmail::make())

Configuration

<?php

use RickDBCN\FilamentEmail\Filament\Resources\EmailResource;
use RickDBCN\FilamentEmail\Models\Email;

return [
    'resource' => [
        'class' => EmailResource::class,
        'model' => Email::class,
        'group' => null,
        'sort' => null,
        'default_sort_column' => 'created_at',
        'default_sort_direction' => 'desc',
        'datetime_format' => 'Y-m-d H:i:s',
        'filter_date_format' => 'Y-m-d',
        'table_search_fields' => [
            'subject',
            'from',
            'to',
            'cc',
            'bcc',
        ],
    ],

    'keep_email_for_days' => 60,
    'label' => null,

    'prune_crontab' => '0 0 * * *',

    'can_access' => [
        'role' => [],
    ],
];

Testing

composer test

Screenshots

E-mail list

Advanced filters

Resend e-mail

Update addresses and resend e-mail

E-mail view with attachments

Credits

License

The MIT License (MIT). Please see License File for more information.