Download the PHP package timedoor/mail-logger without Composer

On this page you can find all versions of the php package timedoor/mail-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mail-logger

Laravel Mail Logger


A laravel package to log outgoing emails and resend. This package will store all outgoing emails inside database and will track their status if they are successfully sent or not.

Installation

This package can be installed using composer.

It will automatically detected by Laravel, but you could register the package's service provider manually by adding the below line to providers array inside config/app.php file.

By default, this package will use mail_logs as table name on database migration, but you could change it by editting config/mail_logger.php. Before that, you need to publish the configuration by running

Run migrations to create the table required to store the emails.

This will create a table mail_logs, or any name you gives on configuration file.

Usage

By default this package records all the outgoing mailables and notifications.

Ignoring Mailables And Notifications From Being Recorded

If you wish to ignore certain mailables or notifications from being recorded, You can add them to ignore array in config/mail_logger.php file.

Resending Mails

You can resend any mail by using the following command

Here 1 represents the ID of the mail to resend. The command above will send email as the logged mail sent, for example: if you send using queue, it will resend email using queue, too. In case you want to send the mail immediately, you can add option --now.

Resending All Un-Sent Mails

If you wish to resend all the mails which are unsent, You can use the following artisan command

or

Since this command will only resend the mails which are failed to send, You can safely schedule this command to resend your failed emails.

Deleting Older Entries

Since this package records all outgoing emails, Your database table will start growing quickly. To automatically delete older entires, This package provides an artisan command to schedule deletion of older entries.

You can schedule deletion of older entries by adding the following line to your scheduler.

This will delete all entries which are older than 72 hours.

Run it via controller

If you want to resend or prune emails via controller, please look at the example below

Contributing

contributions-wellcome

Contributions are always welcome!

License

Licensed under the MIT License, see LICENSE for more information.


All versions of mail-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
laravel/framework Version ^7.0|^8.0|^9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package timedoor/mail-logger contains the following files

Loading the files please wait ....