PHPackages                             alaa/magento2-custom-mail - 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. alaa/magento2-custom-mail

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

alaa/magento2-custom-mail
=========================

Magento2 Custom Mail

1.0.0(8y ago)022MITPHP

Since Dec 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alaa-almaliki/magento2-custom-mail)[ Packagist](https://packagist.org/packages/alaa/magento2-custom-mail)[ RSS](/packages/alaa-magento2-custom-mail/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Magento2 Custom Mail
====================

[](#magento2-custom-mail)

Example
=======

[](#example)

```
$data = [
            'comment' => 'Hello this is a test message',
            'email' => 'john.doe@domain.com',
            'name' => 'John Doe',
        ];

        /**
         * wrap parameters values in array as they are called by call_user_func_array
         */
        $config = [
            'template_identifier' => ['contact_us'],
            'template_options' => [['area' => Area::AREA_FRONTEND ,'store' => $this->storeManager->getStore()->getId()]],
            'template_vars' => [$data],
            'from' => [['email' => 'john.doe@domain.com', 'name' => 'John Doe']],
            'to' => ['email' =>'tom.right@example.com', 'name' => 'Tom Right'],
            'cc' => ['email' =>'sarah.foxon@yahoo.com', 'name' => 'Sarah Foxon'],
            'bcc' => ['email' =>'Ahmed.Hassan@example.com', 'name' => 'Ahmed Hassan'],
        ];

        $this->sendMail->setConfig($config);
        $this->sendMail->send();

```

Template Config
===============

[](#template-config)

app/code/Namespace/Modulename/etc/email\_templates.xml

```

```

Template
========

[](#template)

app/code/Namespace/Modulename/view/frontend/email/contactus.html

```

Name: {{var name}}
Email: {{var email}}
Comment: {{var comment}}

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

3102d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7830984?v=4)[Alaa Al-Maliki](/maintainers/alaa-almaliki)[@alaa-almaliki](https://github.com/alaa-almaliki)

---

Top Contributors

[![alaa-almaliki](https://avatars.githubusercontent.com/u/7830984?v=4)](https://github.com/alaa-almaliki "alaa-almaliki (3 commits)")

### Embed Badge

![Health badge](/badges/alaa-magento2-custom-mail/health.svg)

```
[![Health](https://phpackages.com/badges/alaa-magento2-custom-mail/health.svg)](https://phpackages.com/packages/alaa-magento2-custom-mail)
```

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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