Download the PHP package jardisadapter/mailer without Composer

On this page you can find all versions of the php package jardisadapter/mailer. 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 mailer

Jardis Mailer

Build Status PHP Version

Part of Jardis — the Domain-Driven Design platform for PHP. You model your domain; Jardis generates the production-ready hexagonal code (DTOs, Command/Query handlers, repositories, persistence). This package is part of the open-source foundation that generated code runs on.

Transactional emails without the bloat. A lean SMTP mailer for PHP built on raw sockets — covers order confirmations, password resets, and notifications. No Swiftmailer, no Symfony Mailer, no dependency tree. Just SMTP over a socket.

* Zero external PHP packages. Only ext-openssl + ext-mbstring + jardissupport/contracts (interfaces only).


Why This Mailer?


Installation


Quick Start

Send a Simple Email

HTML + Plain Text

Both bodies are sent as multipart/alternative — the recipient's mail client picks the best one.

Attachments

Inline Images in HTML

Multiple Recipients, CC, BCC

Custom Headers


Fully Configured


Batch Sending

Send multiple emails over a single SMTP connection — the connection stays alive between messages:


Retry

Automatically retries on SmtpConnectionException and temporary SMTP errors (4xx). No retry on permanent errors (5xx) — those are recipient or policy errors.


Error Handling

Exception When
SmtpConnectionException Host unreachable, TLS handshake failure, timeout
SmtpAuthenticationException LOGIN or PLAIN rejected
SmtpTransportException SMTP protocol error (rejected recipient, DATA error)
MailMessageException Invalid message (missing From, To, or body)

All implement MailerExceptionInterface for generic catch:


Encryption

Port Encryption How it works
587 tls (default) Connects plain, upgrades via STARTTLS
465 ssl Connects over implicit TLS
25 none No encryption (not recommended)

Architecture

The user only sees Mailer + SmtpConfig + MailMessage. Internally, the mailer orchestrates a pipeline of invokable handlers — built from the config:

Each handler is an invokable object (__invoke) — independently testable, replaceable, composable. Only what is configured gets instantiated.

Custom Transport

The transport is a closure — replaceable for testing or alternative delivery:


Jardis Foundation Integration

In a Jardis DDD project, the mailer is automatically configured via ENV:

The MailerHandler in JardisApp builds the mailer and registers it in the ServiceRegistry. Your application code receives MailerInterface via injection — without ever importing Mailer directly.


Development


Documentation

Full documentation, guides, and API reference:

docs.jardis.io/en/adapter/mailer


License

MIT License — free for any use, including commercial.

AI-Assisted Development

This package ships with a skill for Claude Code, Cursor, Continue, and Aider. Install it in your consuming project:

More details: https://docs.jardis.io/en/skills


All versions of mailer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-openssl Version *
ext-mbstring Version *
jardissupport/contracts Version ^1.0 || ^2.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 jardisadapter/mailer contains the following files

Loading the files please wait ...