Emails
The package is an extension for the Laravel Enso environment, designed for sending emails/notifications.
This package can work independently of the Enso ecosystem.
For live examples and demos, you may visit laravel-enso.com
Installation
The package does not installed by default in Enso.
To install:
add the package using composer:
composer require laravel-enso/emails
add the following line in the
schedule
function inapp\Console\Kernel.php
class:... protected function schedule(Schedule $schedule) { //other stuff $schedule->job(new ScheduleEmails)->everyMinute(); } ...
Also make sure that
ScheduleEmails
class is imported.NOTE For local schedule testing, you must first run the command:
php artisan schedule:run
add the following alias in
vue.config.js
configureWebpack: { resolve: { alias: { //other aliases '@emails': `${__dirname}/../vendor/laravel-enso/emails/src/resources/js`, }, },
in
resources/js/router.js
file, verify thatRouteMerger
is imported, or import itimport RouteMerger from '@core-modules/importers/RouteMerger';
make sure
routeImporter
is also importedimport routeImporter from '@core-modules/importers/routeImporter';
then use
RouteMerger
to import front-end assets using the alias defined invue.config.js
(new RouteMerger(routes)) .add(routeImporter(require.context('./routes', false, /.*\.js$/))) .add(routeImporter(require.context('@emails/routes', false, /.*\.js$/)));
in
resources/js/app.js
import the package's iconsimport '@emails/icons';
make sure
hot module replacement
is not active, and runyarn dev
ornpm run dev
Features
- friendly display of all stored emails together with their status
- default recipients options such as teams or users
- attachments management
- email scheduling management
- email priority
- includes front-end assets
Icons
The package uses the following FontAwesome icons:
paper-plane
Publishes
php artisan vendor:publish --tag=emails-config
- the configuration filephp artisan vendor:publish --tag=emails-assets
- the front end VueJS/js assets
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.