An open API service indexing awesome lists of open source software.

https://github.com/marcogermani87/filament-email-demo

Log emails in your Filament project
https://github.com/marcogermani87/filament-email-demo

email email-log filament laravel php

Last synced: 3 months ago
JSON representation

Log emails in your Filament project

Awesome Lists containing this project

README

        



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

## Application ENV

| Package | Filament | Laravel | Apache | PHP | MySQL |
| ------------- | ------------- | ------------- | -------------| -------------| -------------|
| 1.x | 3.x | 11.x | 2.4.x | 8.3.6 + FPM | 8.x |

## Installation

Enable docker .env config:

```bash
cp .env.production .env
```

Build and start docker containers:

```bash
docker compose --profile=prod up -d
```

Enable application .env config:

```bash
cp src/.env.example src/.env
```

Install dependencies:

```bash
docker compose exec php bash -c "cd ../ && composer install"
```

Install application data:

```bash
docker compose exec php bash -c "cd .. && php -d memory_limit=-1 artisan demo:install"
```

Refresh application data:

```bash
docker compose exec php bash -c "cd .. && php -d memory_limit=-1 artisan demo:refresh"
```

You're ready to go! Visit the url http://localhost:8001 in your browser, and login with:

- **Username:** [email protected]
- **Password:** 123Stella@

## Reverse proxy for production

Configuration for apache2 with Let's Encrypt:

```apacheconf

ServerName filament-email-demo.example.com

DocumentRoot /path/to/application/src/public/

ErrorLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-error.log
CustomLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-access.log combined

RewriteEngine on
RewriteCond %{SERVER_NAME} =filament-email-demo.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

ServerName filament-email-demo.example.com

DocumentRoot /var/www/filament-email-demo/src/public/

ProxyPreserveHost On

ProxyPass / http://127.0.0.1:8001/
ProxyPassReverse / http://127.0.0.1:8001/

ErrorLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-ssl-error.log
CustomLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-ssl-access.log combined

SSLCertificateFile /etc/letsencrypt/live/filament-email-demo.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/filament-email-demo.example.com/privkey.pem

Include /etc/letsencrypt/options-ssl-apache.conf

```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Credits

- [Marco Germani](https://github.com/marcogermani87)
- [All Contributors](../../contributors)