PHPackages                             elcommerce/magento2-advanced-mailer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. elcommerce/magento2-advanced-mailer

ActiveMagento2-module[Mail &amp; Notifications](/categories/mail)

elcommerce/magento2-advanced-mailer
===================================

Advanced Mailer extension for Magento 2

0.0.2(1y ago)039LGPL-3.0-or-laterPHPPHP &gt;=7.4.0

Since Mar 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/elcommerce/magento2-advanced-mailer)[ Packagist](https://packagist.org/packages/elcommerce/magento2-advanced-mailer)[ RSS](/packages/elcommerce-magento2-advanced-mailer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Advanced Mailer extension for Magento 2
=======================================

[](#advanced-mailer-extension-for-magento-2)

What for this extension is designed for?
----------------------------------------

[](#what-for-this-extension-is-designed-for)

It's impossible currently to send emails with file attachments from Magento 2 class called:

```
Magento\Framework\Mail\Template\TransportBuilder

```

There were some community PRs: [magento/magento2#33262](https://github.com/magento/magento2/pull/33262)

But for some starnge reasons Adobe doesn't accept such useful changes from community members. That's weird.

`elcommerce/magento2-advanced-mailer` is FREE of:

- PHP `Reflection` API usage
- big and ugly rewriting of `TransportBuilder` with huge `__constructor()` overload

Compatibility
-------------

[](#compatibility)

- Magento: v2.4.0 and later
- PHP: 7.4+

Installation
------------

[](#installation)

install module using composer:

```
composer require elcommerce/magento2-advanced-mailer

```

then do:

```
bin/magento setup:upgrade
bin/magento setup:di:compile

```

API
---

[](#api)

There's an override in `di.xml`, so your `TransportBuilder` objects will have `addAttachment()` method now:

```
public function addAttachment(
    string $content,
    string $fileName,
    ?string $fileType = MimeInterface::TYPE_OCTET_STREAM
): TransportBuilder
```

As bonus you have `addMimePart()` method too:

```
public function addMimePart(object $part): TransportBuilder
```

Where `$part` is `Magento\Framework\Mail\MimePart` or `Laminas\Mime\Part` instance

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance45

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

432d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ec7d694238f1199a66c90e0ed161a23fa77bfe2fb299f92d9fb3a5b6958e067?d=identicon)[elcommerce](/maintainers/elcommerce)

---

Top Contributors

[![lamskoy](https://avatars.githubusercontent.com/u/233998?v=4)](https://github.com/lamskoy "lamskoy (2 commits)")

---

Tags

email-attachmentsemail-sendermagento2magento2-extensionmagento2magento 2magento2 extensionm2magento2 extension free

### Embed Badge

![Health badge](/badges/elcommerce-magento2-advanced-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/elcommerce-magento2-advanced-mailer/health.svg)](https://phpackages.com/packages/elcommerce-magento2-advanced-mailer)
```

###  Alternatives

[magepal/magento2-gmailsmtpapp

Magento 2 SMTP Extension - Configure Magento 2 to send all transactional email using Gmail, G Suite, Amazon SES, Office360, Mailgun, SendGrid, Mandrill or any other SMTP servers

3321.8M2](/packages/magepal-magento2-gmailsmtpapp)[mageplaza/module-smtp

SMTP Extension for Magento 2 helps the owner of store simply install SMTP (Simple Mail Transfer Protocol) server which transmits the messages into codes or numbers

3015.9M8](/packages/mageplaza-module-smtp)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2671.5M4](/packages/magepal-magento2-googletagmanager)[magepal/magento2-reindex

Reindex your Magento2 store quickly and easily from backend/admin, instead of command line.

112649.7k1](/packages/magepal-magento2-reindex)[kiwicommerce/module-admin-activity

The Admin Activity extension makes it easy to track all admin activity and revert the modification.

102407.9k](/packages/kiwicommerce-module-admin-activity)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
