Download the PHP package vancil/flint-mail without Composer

On this page you can find all versions of the php package vancil/flint-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 flint-mail

flint-mail

Tests Total Downloads Latest Version on Packagist License

Full-featured mail package for the Flint framework. Mailable classes, async queueing, CC/BCC/attachments, and six sending drivers — all with zero new dependencies beyond Flint itself.


Installation

Register the package in config/app.php:

Run the installer to publish the config and migration:


Mailable Classes

Create a Mailable with the CLI:

This creates app/Mail/WelcomeEmail.php. Define your email inside build():

Sending

All Builder Methods


Fluent API (without Mailables)

You can also send ad-hoc emails via the injected Mailer:


Queued Mail

When queue() is called, flint-mail:

  1. Renders the email body immediately
  2. Persists a QueuedMail record to the database with status = pending
  3. Dispatches a SendMailJob to Flint's queue system

Start the queue worker to process queued mail:

The queued_mails table tracks each email's lifecycle:

Column Description
status pendingprocessingsent or failed
attempts How many send attempts have been made
error Last error message if failed
sent_at Timestamp when successfully delivered

Failed jobs are retried up to 3 times (60 second delay between attempts).


Drivers

Set MAIL_DRIVER in .env to choose your sending backend.

Log (default)

Writes emails to storage/logs/mail.log. Use this locally.

SMTP

Raw socket SMTP — works with any SMTP server (Gmail, Mailgun SMTP, SES SMTP, etc.).

Mailgun

Postmark

Amazon SES

SES requests are signed with AWS Signature Version 4, implemented inline with no external SDK.

SendGrid


Configuration

config/mail.php (published by php flint mail:install):


Email Templates

Email HTML bodies can be written as Spark templates:

resources/views/emails/welcome.spark.php:

Then reference it in your Mailable:


Writing a Custom Driver

Implement Vancil\FlintMail\Drivers\DriverInterface:

Register it in FlintMail::register() by extending the package or binding it in your Application::boot().


License

MIT — Vancil


All versions of flint-mail with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
vancil/flint Version *
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 vancil/flint-mail contains the following files

Loading the files please wait ...