Download the PHP package kirschbaum-development/nova-mail without Composer

On this page you can find all versions of the php package kirschbaum-development/nova-mail. 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 nova-mail

Nova Mail

Latest Version on Packagist Total Downloads

This package contains a Nova action that provides a mail sending form for any resource to easily send email. It also includes automated mail sending based on Eloquent Model events/attribute changes.

Requirements

This Nova package requires Nova 4.0 or higher. If you are using a Nova version < 4.0, then you'll want to use v1.0.4 (no longer updated).

Using the mail delay feature requires a queue driver other than sync. If you are using the Amazon SQS queue service, the maximum delay time is 15 minutes.

Installation

You can install this package in a Laravel app that uses Nova via composer:

Next, we need to run migrations. Auto-discovery of this package's service provider helps with that!

And lastly, any model that you want to send mail needs the Mailable trait added to it. The model should have a compliant email column. You also need to implement the abstract method provided by the Mailable trait, like shown below. You should customize this if your email column name is different:

If you would like to publish the config for this package, run:

And choose the provider for this package: KirschbaumDevelopment\NovaMail\NovaMailServiceProvider

Usage

There is a single action (SendMail) and two resources (NovaMailTemplate and NovaSentMail) that ship with this package. Internally the SendMail action uses a custom Nova field to display the inline mail sending form.

SendMail action

The SendMail action inserts a mail form directly into a Nova action modal. This action allows you to quickly send an email directly to one or more resources.

Simply add the KirschbaumDevelopment\NovaMail\Actions\SendMail action to your Nova resource:

Now you can send emails from the action called "Send Mail" on your resource!

You can also delay any outgoing email by setting the delay in minutes property on the template. Like subject and body, you can override the mail delay specified in the template when you send mail.

Trigger Mail on Model Events

A MailTemplate can be configured to respond to Eloquent Model events, or a value change of a specified column. For example, a mail template informing your users of their account status could be sent when the active column on your User model is updated:

You can even have separate Model Events for both "on" an "off"!

Mail Template Usage/Caveats

The NovaMailTemplate resource allows you to create re-usable custom templates for sending email. It works by taking your specified template (or over-ridden template content) and building a temporary blade file (the Blade file can be saved permantely via a configuration option). This blade file is then used in the typical Laravel fashion to send the email.

The final content provided when the user clicks the "Send Mail" button is parsed as markdown and makes no assumptions about newlines or any other formatting for that matter. For example, if you were to use the built in mail message component provided by Laravel for markdown emails you could create a template like the following:

Sent Mail Usage

The NovaSentMail resource can be added as a relationship field to any Resource that has the Mailable trait defined on it's corresponding model. This gives you direct access to the history of emails sent from that Resource:

Resource Customization

In case you need to customize the Nova Resources that you're using in your application, for instance, to add filters, cards or add fields. You can change the default set of classes. First, you'll need to override the array of Resources found in the config file (If you haven't published a config file yet please see the Installation section):

After that you can extends the default Resource Class and add your custom code like this:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] or [email protected] instead of using the issue tracker.

Credits

Sponsorship

Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more about us or join us!

License

The MIT License (MIT). Please see License File for more information.


All versions of nova-mail with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.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 kirschbaum-development/nova-mail contains the following files

Loading the files please wait ....