PHPackages                             dbrisinajumi/d2mailer - 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. dbrisinajumi/d2mailer

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

dbrisinajumi/d2mailer
=====================

Send Email to user

01711PHP

Since Jul 14Pushed 8y ago4 watchersCompare

[ Source](https://github.com/DBRisinajumi/d2mailer)[ Packagist](https://packagist.org/packages/dbrisinajumi/d2mailer)[ RSS](/packages/dbrisinajumi-d2mailer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Require
-------

[](#require)

- SwiftMailer
- yii-user

/config/main.php
----------------

[](#configmainphp)

add under module:

```
    'd2mailer' => array(
        'class' => 'vendor.dbrisinajumi.d2mailer.D2mailerModule',
        'fromEmail' => 'uldis@weberp.lv',
        'fromName' => 'Uldis Nelsons',
        'smtp_host' => 'smtp.apollo.lv',
        'smtp_port' => 25,
        'smtp_username' => 'username', //optional
        'smtp_password' => 'password', //optional
    ),

```

Usage
-----

[](#usage)

```
    $user_id = 1;
    $subject = 'Subject';
    $message = 'Message';

    Yii::import('vendor.dbrisinajumi.d2mailer.components.*');
    $d2mailer = new d2mailer();
    if($d2mailer->sendMailToUser($user_id,$subject,$message) === false){
        echo '     ' . $d2mailer->error;
    }

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/542187ba859514d10d0952dca77df8ea889a9651b249d0b5b513da791fd2919b?d=identicon)[uldisn](/maintainers/uldisn)

---

Top Contributors

[![uldisn](https://avatars.githubusercontent.com/u/3525344?v=4)](https://github.com/uldisn "uldisn (13 commits)")[![edmundspriede](https://avatars.githubusercontent.com/u/5557888?v=4)](https://github.com/edmundspriede "edmundspriede (1 commits)")

### Embed Badge

![Health badge](/badges/dbrisinajumi-d2mailer/health.svg)

```
[![Health](https://phpackages.com/badges/dbrisinajumi-d2mailer/health.svg)](https://phpackages.com/packages/dbrisinajumi-d2mailer)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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