Download the PHP package hryvinskyi/magento2-asynchronous-email-sending without Composer

On this page you can find all versions of the php package hryvinskyi/magento2-asynchronous-email-sending. 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 magento2-asynchronous-email-sending

Magento 2 / Adobe Commerce Asynchronous Email Sending

A Magento 2 module that queues all outgoing emails for asynchronous processing via cron jobs, significantly improving store performance by offloading email sending to background processes.

Features

Requirements

Installation

Via Composer (Recommended)

Manual Installation

  1. Create the directory structure: app/code/Hryvinskyi/AsynchronousEmailSending
  2. Copy all module files to the directory
  3. Run the following commands:

Configuration

Navigate to: Stores > Configuration > System > Hryvinskyi Asynchronous Email Sending

General Settings

Setting Description Default
Enable Enable/disable asynchronous email sending No
Sending Limit Maximum number of emails to send per cron execution 10
Clear Success After (Days) Days to keep successfully sent emails before cleanup 7
Clear Errors After (Days) Days to keep failed emails before cleanup 30
Debug Mode Enable detailed logging to var/log/hryvinskyi_asynchronous_email_sending.log No

Admin Grid Interface

Navigate to: System > Async Email Queue

The admin grid provides a comprehensive interface for managing queued emails:

Grid Columns

Column Description
ID Unique email identifier
Status Email status with colored badges (Pending, Sent, Error)
Subject Email subject line
Created At When the email was queued
Sent At When the email was sent (if applicable)
Actions View, Resend, Delete

Available Actions

Mass Actions

Row Actions

Email View Page

The view page displays:

ACL Permissions

Resource Description
Hryvinskyi_AsynchronousEmailSending::email_queue Access to email queue menu
Hryvinskyi_AsynchronousEmailSending::email_queue_view View email queue and details
Hryvinskyi_AsynchronousEmailSending::email_queue_delete Delete emails from queue
Hryvinskyi_AsynchronousEmailSending::email_queue_resend Resend emails

How It Works

1. Email Capture

When your Magento store attempts to send an email:

2. Queue Processing

The cron job hryvinskyi_asynchronous_sending_send_emails runs periodically:

Logging

When debug mode is enabled, the module logs to:

Log entries include:

Troubleshooting

Emails Not Being Sent

  1. Verify cron is running:

  2. Check queue status:

    Status: 0 = Pending, 1 = Sent, 2 = Failed

  3. Enable debug mode and check logs at var/log/hryvinskyi_asynchronous_email_sending.log

  4. Verify SMTP configuration in Magento admin

Failed Emails (Status = 2)

Check the log file for specific error messages. Common issues:

Manual Queue Processing

You can manually trigger email sending using the CLI command:

Or via cron:

Compatibility

Magento Version Module Version PHP Version Status
2.4.8+ 1.1.0+ 8.3, 8.4 Fully Supported
2.4.6 - 2.4.7 1.0.x 8.1, 8.2 Use older version
< 2.4.6 Not supported - Not compatible

Changelog

See CHANGELOG.md for version history and updates.

License

This module is licensed under the MIT License. See LICENSE for details.

Author

Volodymyr Hryvinskyi


All versions of magento2-asynchronous-email-sending with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0|~8.4.0
magento/framework Version ^103.0.8
magento/module-backend Version *
magento/module-config Version *
magento/module-email 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 hryvinskyi/magento2-asynchronous-email-sending contains the following files

Loading the files please wait ...