Mailing extended
This module adds the ability to create mail lists and send e-mails.
If this module is active, a button will be appended to index page of MailMessage
resource to send an e-mail.
Installation
To install this module:
composer require qore/mailing-extended
php artisan vendor:publish --tag=qore.mailing-extended.db
php artisan vendor:publish --tag=qore.mailing-extended.frontend
php artisan vendor:publish --tag=qore.mailing-extended.config
Usage
Make sure to migrate (php artisan tenants:migrate
)
To use this module:
This module simply adds a resource (MaillistResource
) and a page to send e-mails.
You can add this somewhere in your menu (in GlobalsController
):
if (module_is_active('qore/mailing-extended')) {
$tab->addResourceMenuItem(resource('mail_lists'));
$tab->addMenuItem(
__('Send e-mail'),
'/send-mail',
['mail management'],
fn (MenuItem $item) => $item->setIcon('mail')
);
}
Resources can be added in the mailing-extended.php
config file, these resources are used to create mail lists based on filters.
'mailable_resources' => [
\App\Resources\CustomerResource::class,
]
Upgrade Guide
To upgrade this module:
composer update qore/mailing-extended
If you need to upgrade migrations or Vue components:
php artisan vendor:publish --tag=qore.mailing-extended.db --force
php artisan vendor:publish --tag=qore.mailing-extended.frontend --force
php artisan vendor:publish --tag=qore.mailing-extended.config --force (Caution, the current config wil be overwritten)