Download the PHP package bayfrontmedia/mail-manager without Composer

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

Mail Manager

Framework agnostic library to queue and send emails from multiple services using a consistent API.

NOTE: Development is currently underway to integrate additional mail services (adapters) to Mail Manager, and these will be released as they are developed.

License

This project is open source and available under the MIT License.

Author

Bayfront Media

Requirements

Installation

Usage

NOTE: All exceptions thrown by Mail Manager extend Bayfront\MailManager\Exceptions\MailException, so you can choose to catch exceptions as narrowly or broadly as you like.

Adapter

A Bayfront\MailManager\AdapterInterface must be passed to both the Bayfront\MailManager\Mail, and the Bayfront\MailManager\MailQueue constructors. There are a variety of adapters available, each with their own required configuration.

In addition, you may also create and use your own adapters to be used with Mail Manager.

All adapters have a getInstance() method, which can be used to get the underlying instance used by the adapter.

PHPMailer

The PHPMailer adapter allows you to use PHPMailer for sending messages.

The PHPMailer adapter also has a testConnection() method you can use to test for a successful connection to the SMTP server.

Start using Mail Manager

You may choose one of the following classes to use:

The Bayfront\MailManager\Mail class allows for the creation and immediate sending of messages. No database is needed.

The Bayfront\MailManager\MailQueue class is the same as above, only it requires a PDO instance to work with queued messages. Queued messages allow for messages to be sent programmatically at a later date.

Mail default configuration

MailQueue default configuration

Public methods

MailQueue only


create

Description:

Create a new message.

Parameters:

Returns:

Throws

Example:


addAddress

Description:

Add a "To" recipient.

Parameters:

Returns:

Example:


addCc

Description:

Add a "Cc" recipient.

Parameters:

Returns:

Example:


addBcc

Description:

Add a "Bcc" recipient.

Parameters:

Returns:

Example:


addAttachment

Description:

Add an attachment.

Parameters:

Returns:

Example:


discard

Description:

Discard message.

Parameters:

Returns:

Example:


send

Description:

Send message.

Parameters:

Returns:

Throws:

Example:


addQueue

NOTE: This method is only available with the MailQueue class.

Description:

Queue message.

Parameters:

Returns:

Throws:

Example:


removeQueue

NOTE: This method is only available with the MailQueue class.

Description:

Remove a given ID from the queue.

Parameters:

Returns:

Throws:

Example:


getQueue

NOTE: This method is only available with the MailQueue class.

Description:

Get all messages in queue that are due, up to a given limit.

Parameters:

Returns:

Throws:

Example:


sendQueue

NOTE: This method is only available with the MailQueue class.

Description:

Send messages in queue that are due, up to a given limit.

Parameters:

Returns:

Throws:

Example:

The returned array contains a result summary with the following structure:


All versions of mail-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-pdo Version *
bayfrontmedia/php-array-helpers Version ^2.0
phpmailer/phpmailer Version ^6.9
soundasleep/html2text Version ^2.1
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 bayfrontmedia/mail-manager contains the following files

Loading the files please wait ....