PHPackages                             aimanecouissi/module-mail-transport-builder-attachment - 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. aimanecouissi/module-mail-transport-builder-attachment

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

aimanecouissi/module-mail-transport-builder-attachment
======================================================

Add attachments to Magento mail transport

1.0.0(2mo ago)11MITPHPPHP ^8.3

Since Apr 30Pushed 2mo agoCompare

[ Source](https://github.com/aimanecouissi/magento2-module-mail-transport-builder-attachment)[ Packagist](https://packagist.org/packages/aimanecouissi/module-mail-transport-builder-attachment)[ Docs](https://github.com/aimanecouissi/magento2-module-mail-transport-builder-attachment)[ RSS](/packages/aimanecouissi-module-mail-transport-builder-attachment/feed)WikiDiscussions main Synced 1w ago

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

AimaneCouissi\_MailTransportBuilderAttachment
=============================================

[](#aimanecouissi_mailtransportbuilderattachment)

[![Latest Stable Version](https://camo.githubusercontent.com/72f71bd24a6c7475107dbbd83852259c2e7e85319cc94383e3dcccad5747578a/687474703a2f2f706f7365722e707567782e6f72672f61696d616e65636f75697373692f6d6f64756c652d6d61696c2d7472616e73706f72742d6275696c6465722d6174746163686d656e742f76)](https://packagist.org/packages/aimanecouissi/module-mail-transport-builder-attachment) [![Total Downloads](https://camo.githubusercontent.com/58054f2da4866f6a882939d8edb2ab2d8d7f333d20731b0be4030c9e15452933/687474703a2f2f706f7365722e707567782e6f72672f61696d616e65636f75697373692f6d6f64756c652d6d61696c2d7472616e73706f72742d6275696c6465722d6174746163686d656e742f646f776e6c6f616473)](https://packagist.org/packages/aimanecouissi/module-mail-transport-builder-attachment) [![Magento Version](https://camo.githubusercontent.com/8d866323b67ba51dd3247869fe2bf83ada7ec39e54818271ccf0955cc248e8bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342e382532422d453638373138)](https://packagist.org/packages/aimanecouissi/module-mail-transport-builder-attachment) [![License](https://camo.githubusercontent.com/e02f1eb687fe72dc4ef3aa1361487c40aac933a08c2457378d77de1a82fc9604/687474703a2f2f706f7365722e707567782e6f72672f61696d616e65636f75697373692f6d6f64756c652d6d61696c2d7472616e73706f72742d6275696c6465722d6174746163686d656e742f6c6963656e7365)](https://packagist.org/packages/aimanecouissi/module-mail-transport-builder-attachment) [![PHP Version Require](https://camo.githubusercontent.com/8df3d631bf216ce504920cabd42a8bce37656c3e1c55f82b0124e28f000c79d9/687474703a2f2f706f7365722e707567782e6f72672f61696d616e65636f75697373692f6d6f64756c652d6d61696c2d7472616e73706f72742d6275696c6465722d6174746163686d656e742f726571756972652f706870)](https://packagist.org/packages/aimanecouissi/module-mail-transport-builder-attachment)

Extends Magento's mail transport builder with email attachment support. The module provides an attachment-capable transport builder interface for adding raw content or file-based attachments before a message is sent.

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

[](#installation)

```
composer require aimanecouissi/module-mail-transport-builder-attachment
bin/magento module:enable AimaneCouissi_MailTransportBuilderAttachment
bin/magento setup:upgrade
bin/magento cache:flush
```

Usage
-----

[](#usage)

Inject `AttachmentTransportBuilderInterface` where a Magento mail transport builder is needed. Use `addAttachment()` for raw content and `addAttachmentFromFile()` for readable file paths.

Call the attachment methods before `getTransport()`. Queued attachments are added to the generated MIME message and cleared when the builder resets after transport creation.

Uninstall
---------

[](#uninstall)

```
bin/magento module:disable AimaneCouissi_MailTransportBuilderAttachment
composer remove aimanecouissi/module-mail-transport-builder-attachment
bin/magento setup:upgrade
bin/magento cache:flush
```

Changelog
---------

[](#changelog)

See [CHANGELOG](CHANGELOG.md) for all recent changes.

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance83

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

85d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/355d6c90d36920c9ac79d58c7f959ae1dd258d39fbae7288ef4384ff9afe1505?d=identicon)[aimanecouissi](/maintainers/aimanecouissi)

---

Top Contributors

[![aimanecouissi](https://avatars.githubusercontent.com/u/109481784?v=4)](https://github.com/aimanecouissi "aimanecouissi (1 commits)")

---

Tags

magentomagento-extensionmagento-modulemagento2magento2-extensionmagento2-modulephpmailmagentoattachmentmagento2adobe commercetransport-builder

### Embed Badge

![Health badge](/badges/aimanecouissi-module-mail-transport-builder-attachment/health.svg)

```
[![Health](https://phpackages.com/badges/aimanecouissi-module-mail-transport-builder-attachment/health.svg)](https://phpackages.com/packages/aimanecouissi-module-mail-transport-builder-attachment)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M50](/packages/smile-elasticsuite)[magewirephp/magewire

A framework that makes building reactive and dynamic interfaces simple in Magento 2

2621.4M45](/packages/magewirephp-magewire)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[yireo/magento2-emailtester2

Preview transactional emails and test send them in your backend

34431.0k](/packages/yireo-magento2-emailtester2)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

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