Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/vormkracht10/filament-mails/discussions/new?category=q-a
url: https://github.com/backstagephp/filament-mails/discussions/new?category=q-a
about: Ask the community for help
- name: Request a feature
url: https://github.com/vormkracht10/filament-mails/discussions/new?category=ideas
url: https://github.com/backstagephp/filament-mails/discussions/new?category=ideas
about: Share ideas for new features
- name: Report a security issue
url: https://github.com/vormkracht10/filament-mails/security/policy
url: https://github.com/backstagephp/filament-mails/security/policy
about: Learn how to notify us for sensitive bugs
42 changes: 21 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,38 @@ All notable changes to `filament-mails` will be documented in this file.

### What's Changed

* Fix issue with navigation icons by @Skullbock in https://github.com/vormkracht10/filament-mails/pull/37
* Fix issue with navigation icons by @Skullbock in https://github.com/backstagephp/filament-mails/pull/37

**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v2.3.4...v2.3.5
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v2.3.4...v2.3.5

## New feature: Suppressions list with option to unsuppress email addresses - 2025-01-23

### What's Changed

* Suppressions list by @markvaneijk in https://github.com/vormkracht10/filament-mails/pull/11
* Suppressions list by @markvaneijk in https://github.com/backstagephp/filament-mails/pull/11

### New Contributors

* @markvaneijk made their first contribution in https://github.com/vormkracht10/filament-mails/pull/11
* @markvaneijk made their first contribution in https://github.com/backstagephp/filament-mails/pull/11

**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v2.1.0...v2.2.0
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v2.1.0...v2.2.0

## v2.1.0 - 2025-01-22

### What's Changed

* [Fix] Format text to prevent stripping line breaks by @Baspa in https://github.com/vormkracht10/filament-mails/pull/14
* [Fix] Define nullable parameter as nullable by @Baspa in https://github.com/vormkracht10/filament-mails/pull/15
* fix: Dynamically determine if tenant is set by @Baspa in https://github.com/vormkracht10/filament-mails/pull/16
* [Fix] Return empty array when $record's to, cc or bcc is empty (#18) by @vincentvankekerix in https://github.com/vormkracht10/filament-mails/pull/19
* Update Pages to reflect configured resource class name by @Skullbock in https://github.com/vormkracht10/filament-mails/pull/20
* [Fix] Format text to prevent stripping line breaks by @Baspa in https://github.com/backstagephp/filament-mails/pull/14
* [Fix] Define nullable parameter as nullable by @Baspa in https://github.com/backstagephp/filament-mails/pull/15
* fix: Dynamically determine if tenant is set by @Baspa in https://github.com/backstagephp/filament-mails/pull/16
* [Fix] Return empty array when $record's to, cc or bcc is empty (#18) by @vincentvankekerix in https://github.com/backstagephp/filament-mails/pull/19
* Update Pages to reflect configured resource class name by @Skullbock in https://github.com/backstagephp/filament-mails/pull/20

### New Contributors

* @vincentvankekerix made their first contribution in https://github.com/vormkracht10/filament-mails/pull/19
* @Skullbock made their first contribution in https://github.com/vormkracht10/filament-mails/pull/20
* @vincentvankekerix made their first contribution in https://github.com/backstagephp/filament-mails/pull/19
* @Skullbock made their first contribution in https://github.com/backstagephp/filament-mails/pull/20

**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v2.0.0...v2.1.0
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v2.0.0...v2.1.0

## v2.0.0 - 2025-01-03

Expand All @@ -47,18 +47,18 @@ All notable changes to `filament-mails` will be documented in this file.

### What's Changed

* Install latest version instead of dev-main by @Baspa in https://github.com/vormkracht10/filament-mails/pull/5
* Use Model from Config for Resource by @iAmKevinMcKee in https://github.com/vormkracht10/filament-mails/pull/7
* [Fix] PHPStan issues by @Baspa in https://github.com/vormkracht10/filament-mails/pull/6
* [Fix] Let user specify (tenant aware) routes by @Baspa in https://github.com/vormkracht10/filament-mails/pull/9
* [Fix] Logging and downloading attachments by @Baspa in https://github.com/vormkracht10/filament-mails/pull/9
* Install latest version instead of dev-main by @Baspa in https://github.com/backstagephp/filament-mails/pull/5
* Use Model from Config for Resource by @iAmKevinMcKee in https://github.com/backstagephp/filament-mails/pull/7
* [Fix] PHPStan issues by @Baspa in https://github.com/backstagephp/filament-mails/pull/6
* [Fix] Let user specify (tenant aware) routes by @Baspa in https://github.com/backstagephp/filament-mails/pull/9
* [Fix] Logging and downloading attachments by @Baspa in https://github.com/backstagephp/filament-mails/pull/9

### New Contributors

* @Baspa made their first contribution in https://github.com/vormkracht10/filament-mails/pull/5
* @iAmKevinMcKee made their first contribution in https://github.com/vormkracht10/filament-mails/pull/7
* @Baspa made their first contribution in https://github.com/backstagephp/filament-mails/pull/5
* @iAmKevinMcKee made their first contribution in https://github.com/backstagephp/filament-mails/pull/7

**Full Changelog**: https://github.com/vormkracht10/filament-mails/compare/v1.0.1...v2.0.0
**Full Changelog**: https://github.com/backstagephp/filament-mails/compare/v1.0.1...v2.0.0

## Bugfix - 2024-11-28

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) vormkracht10 <hello@baspa.dev>
Copyright (c) backstagephp <hello@baspa.dev>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Filament Mails

[![Latest Version on Packagist](https://img.shields.io/packagist/v/vormkracht10/filament-mails.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/filament-mails)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/vormkracht10/filament-mails/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/vormkracht10/filament-mails/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/vormkracht10/filament-mails/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/vormkracht10/filament-mails/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/vormkracht10/filament-mails.svg?style=flat-square)](https://packagist.org/packages/vormkracht10/filament-mails)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/backstagephp/filament-mails.svg?style=flat-square)](https://packagist.org/packages/backstagephp/filament-mails)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/backstagephp/filament-mails/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/backstagephp/filament-mails/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/backstagephp/filament-mails/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/backstagephp/filament-mails/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/backstagephp/filament-mails.svg?style=flat-square)](https://packagist.org/packages/backstagephp/filament-mails)

## Nice to meet you, we're [Vormkracht10](https://vormkracht10.nl)
## Nice to meet you, we're [Backstage](https://backstagephp.com)

Hi! We are a web development agency from Nijmegen in the Netherlands and we use Laravel for everything: advanced websites with a lot of bells and whistles and large web applications.

Expand All @@ -29,16 +29,16 @@ Filament Mails can collect everything you might want to track about the mails th

Email as a protocol is very error prone. Succesfull email delivery is not guaranteed in any way, so it is best to monitor your email sending realtime. Using external services like Postmark, Mailgun or Resend email gets better by offering things like logging and delivery feedback, but it still needs your attention and can fail silently but horendously. Therefore we created Laravel Mails that fills in all the gaps.

The package is built on top of [Laravel Mails](https://github.com/vormkracht10/laravel-mails).
The package is built on top of [Laravel Mails](https://github.com/backstagephp/laravel-mails).

![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/filament-mails.jpeg)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/filament-mails.jpeg)

## Installation

You can install the package via composer:

```bash
composer require vormkracht10/filament-mails
composer require backstage/filament-mails
```

You can publish and run the migrations with:
Expand All @@ -64,7 +64,7 @@ php artisan vendor:publish --tag="filament-mails-views"
Add the routes to the PanelProvider using the `routes()` method, like this:

```php
use Vormkracht10\FilamentMails\Facades\FilamentMails;
use Backstage\FilamentMails\Facades\FilamentMails;

public function panel(Panel $panel): Panel
{
Expand All @@ -76,7 +76,7 @@ public function panel(Panel $panel): Panel
Then add the plugin to your `PanelProvider`

```php
use Vormkracht10\FilamentMails\FilamentMailsPlugin;
use Backstage\FilamentMails\FilamentMailsPlugin;

public function panel(Panel $panel): Panel
{
Expand All @@ -90,8 +90,8 @@ public function panel(Panel $panel): Panel
If you want to protect the mail routes with your (tenant) middleware, you can do so by adding the routes to the `tenantRoutes`:

```php
use Vormkracht10\FilamentMails\FilamentMailsPlugin;
use Vormkracht10\FilamentMails\Facades\FilamentMails;
use Backstage\FilamentMails\FilamentMailsPlugin;
use Backstage\FilamentMails\Facades\FilamentMails;

public function panel(Panel $panel): Panel
{
Expand All @@ -102,7 +102,7 @@ public function panel(Panel $panel): Panel
```

> [!IMPORTANT]
> For setting up the webhooks to register mail events, please look into the README of [Laravel Mails](https://github.com/vormkracht10/laravel-mails), the underlying package that powers this package.
> For setting up the webhooks to register mail events, please look into the README of [Laravel Mails](https://github.com/backstagephp/laravel-mails), the underlying package that powers this package.

### Configuration

Expand All @@ -123,34 +123,34 @@ return [
### List with all sent emails and statistics

The package provides a clear overview of all emails, including statistics and the ability to filter the data.
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mails-list.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mails-list.png)

### Resending emails

You can resend emails to the same or another recipient(s). This is useful when your email has bounced and you want to resend it.
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-resend.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-resend.png)

### Information

You can view all relevant information about the email, such as the subject, the body, the attachments, the from address, the to address(es), the cc address(es), the bcc address(es), the reply to address, metadata and much more.
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-sender-information.png)
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-statistics.png)
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-events.png)
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-attachments.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-sender-information.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-statistics.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-events.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-attachments.png)

### Preview email

The package provides a preview of the email. This is useful to quickly check if the email is correct.
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-preview.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-preview.png)

We also provide the raw HTML and plain text of the email.
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/mail-raw-html.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/mail-raw-html.png)

### Events

The package also logs all events that are fired when an email is sent. This is useful to track the email sending process.
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/events-list.png)
![Filament Mails](https://raw.githubusercontent.com/vormkracht10/filament-mails/main/docs/event-details.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/events-list.png)
![Filament Mails](https://raw.githubusercontent.com/backstagephp/filament-mails/main/docs/event-details.png)

## Testing

Expand All @@ -172,7 +172,7 @@ Please review [our security policy](../../security/policy) on how to report secu

## Credits

- [Baspa](https://github.com/vormkracht10)
- [Baspa](https://github.com/backstagephp)
- [Mark van Eijk](https://github.com/markvaneijk)
- [All Contributors](../../contributors)

Expand Down
50 changes: 26 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "vormkracht10/filament-mails",
"name": "backstage/filament-mails",
"description": "View logged mails and events in a beautiful Filament UI.",
"keywords": [
"vormkracht10",
"backstagephp",
"laravel",
"filament-mails"
],
"homepage": "https://github.com/vormkracht10/filament-mails",
"homepage": "https://github.com/backstagephp/filament-mails",
"support": {
"issues": "https://github.com/vormkracht10/filament-mails/issues",
"source": "https://github.com/vormkracht10/filament-mails"
"issues": "https://github.com/backstagephp/filament-mails/issues",
"source": "https://github.com/backstagephp/filament-mails"
},
"license": "MIT",
"authors": [
Expand All @@ -20,31 +20,27 @@
}
],
"require": {
"php": "^8.1",
"filament/filament": "^3.0",
"php": "^8.2",
"filament/filament": "^4.0",
"spatie/laravel-package-tools": "^1.15.0",
"vormkracht10/laravel-mails": "^1.0"
"backstage/laravel-mails": "^2.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.9",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^2.1",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0"
"laravel/pint": "^1.16",
"nunomaduro/collision": "^8.8.0",
"orchestra/testbench": "^9.0|^10.0",
"pestphp/pest": "^3.7",
"pestphp/pest-plugin-arch": "^3.1.0",
"pestphp/pest-plugin-laravel": "^3.0"
},
"autoload": {
"psr-4": {
"Vormkracht10\\FilamentMails\\": "src/"
"Backstage\\FilamentMails\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Vormkracht10\\FilamentMails\\Tests\\": "tests/"
"Backstage\\FilamentMails\\Tests\\": "tests/"
}
},
"scripts": {
Expand All @@ -65,13 +61,19 @@
"extra": {
"laravel": {
"providers": [
"Vormkracht10\\FilamentMails\\FilamentMailsServiceProvider"
"Backstage\\FilamentMails\\FilamentMailsServiceProvider"
],
"aliases": {
"FilamentMails": "Vormkracht10\\FilamentMails\\Facades\\FilamentMails"
"FilamentMails": "Backstage\\FilamentMails\\Facades\\FilamentMails"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
"prefer-stable": true,
"repositories": {
"backstage/laravel-mails": {
"type": "vcs",
"url": "git@github.com:backstagephp/laravel-mails.git"
}
}
}
6 changes: 3 additions & 3 deletions config/filament-mails.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Vormkracht10\FilamentMails\Resources\EventResource;
use Vormkracht10\FilamentMails\Resources\MailResource;
use Vormkracht10\FilamentMails\Resources\SuppressionResource;
use Backstage\FilamentMails\Resources\EventResource;
use Backstage\FilamentMails\Resources\MailResource;
use Backstage\FilamentMails\Resources\SuppressionResource;

return [
'resources' => [
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Vormkracht10 Test Suite">
<testsuite name="Backstage Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
5 changes: 3 additions & 2 deletions src/Controllers/MailDownloadController.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

namespace Vormkracht10\FilamentMails\Controllers;
namespace Backstage\FilamentMails\Controllers;

use Backstage\Mails\Models\MailAttachment;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Config;

Expand All @@ -17,7 +18,7 @@ public function __invoke(...$arguments)
}

$attachmentModel = Config::get('mails.models.attachment');
/** @var \Vormkracht10\Mails\Models\MailAttachment $attachment */
/** @var MailAttachment $attachment */
$attachment = $attachmentModel::find($attachment);

return $attachment->downloadFileFromStorage();
Expand Down
4 changes: 2 additions & 2 deletions src/Controllers/MailPreviewController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Vormkracht10\FilamentMails\Controllers;
namespace Backstage\FilamentMails\Controllers;

use Backstage\Mails\Models\Mail;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Vormkracht10\Mails\Models\Mail;

class MailPreviewController extends Controller
{
Expand Down
6 changes: 3 additions & 3 deletions src/Facades/FilamentMails.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace Vormkracht10\FilamentMails\Facades;
namespace Backstage\FilamentMails\Facades;

use Illuminate\Support\Facades\Facade;

/**
* @see \Vormkracht10\FilamentMails\FilamentMails
* @see \Backstage\FilamentMails\FilamentMails
*/
class FilamentMails extends Facade
{
protected static function getFacadeAccessor()
{
return \Vormkracht10\FilamentMails\FilamentMails::class;
return \Backstage\FilamentMails\FilamentMails::class;
}
}
Loading
Loading