PHPackages                             maisondunet/module-email-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. maisondunet/module-email-attachment

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

maisondunet/module-email-attachment
===================================

Add invoice / shipment / creditmemo and custom attachments files to magento sales emails

v1.0.5(3y ago)33.8k↓69.6%OSL-3.0PHPPHP &gt;=7.4

Since Feb 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MdnAgency/magento-email-attachment)[ Packagist](https://packagist.org/packages/maisondunet/module-email-attachment)[ RSS](/packages/maisondunet-module-email-attachment/feed)WikiDiscussions master Synced yesterday

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

Magento 2 Email Attachment module
=================================

[](#magento-2-email-attachment-module)

This module Open-source module allow the administrator to attach Invoice, Shipment, Credit Memo and Custom PDF Files to sales email notification. It has been design to be as simple, expendable and as unobtrusive as possible.

It doesn't contain any bloatware just the bare minimum.

Compatibility
=============

[](#compatibility)

The module has been tested with Magento 2.4.5, it should work with any 2.4.\* magento installation.

Installation
============

[](#installation)

To install the Magento 2 GTM Cookie consent, simply run the command below:

```
composer require maisondunet/module-email-attachment
```

To enable the module:

```
bin/magento module:enable Maisondunet_EmailAttachment
```

Module configuration
====================

[](#module-configuration)

Module configuration is located at :

Stores &gt; Configuration &gt; Sales &gt; Sales Emails

Invoice Options
---------------

[](#invoice-options)

FieldDescriptionAttach PDF InvoiceAttach a PDF invoice to invoice notification e-mailsShipment Options
----------------

[](#shipment-options)

FieldDescriptionAttach PDF InvoiceAttach a PDF Shipment to shipment notification e-mailsCredit Memo Options
-------------------

[](#credit-memo-options)

FieldDescriptionAttach PDF Credit MemoAttach a PDF Credit Memo to credit\_memo notification e-mailsEmail Attachments Options
-------------------------

[](#email-attachments-options)

This functionality allow the administrator to attach custom Files to sales-emails.

NameTemplatesFileAttachment NameThe file will be attached to selected template emailThe file attachedExtensibility
-------------

[](#extensibility)

Create a class to handle you custom attachment

```
class CreditMemo implements AttachmentResolverInterface
{
    // --------

    /**
    * @param Template $template
    * @return MimePartInterface[]
     */
    public function getAttachments(Template $template): array{
        // Build your custom attachment there
    }
}
```

And register to service inside a di.xml

```

                Maisondunet\EmailAttachment\Model\AttachmentResolver\SystemConfiguration

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Every ~16 days

Total

2

Last Release

1227d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d290cb41ca8c7b71b0f892056cbb181b68fd10a33db495b459e69c17a14dac9?d=identicon)[vberthet](/maintainers/vberthet)

![](https://www.gravatar.com/avatar/b9bf215e19b2679b4ad3e1de04c6d5d77ccadc50d344c85f2d075534df9c3b8b?d=identicon)[camCampus](/maintainers/camCampus)

---

Top Contributors

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

---

Tags

magento2magento2-extensionmagento2-extension-freemagento2-modulemagento2-module-free

### Embed Badge

![Health badge](/badges/maisondunet-module-email-attachment/health.svg)

```
[![Health](https://phpackages.com/badges/maisondunet-module-email-attachment/health.svg)](https://phpackages.com/packages/maisondunet-module-email-attachment)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50398.5k20](/packages/dotdigital-dotdigital-magento2-extension)[yireo/magento2-emailtester2

Preview transactional emails and test send them in your backend

34431.0k](/packages/yireo-magento2-emailtester2)[fooman/emailattachments-implementation-m2

Automatically attach pdf and terms and conditions documents to outgoing sales emails.

14934.0k5](/packages/fooman-emailattachments-implementation-m2)[vipps/module-payment

Vipps MobilePay Payment Module for Magento 2

1098.4k](/packages/vipps-module-payment)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

244.8k2](/packages/zwernemann-module-withdrawal)

PHPackages © 2026

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