PHPackages                             voronkovich/wordpress-mailer-dsn - 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. voronkovich/wordpress-mailer-dsn

Abandoned → [https://github.com/PopArtDesign/wordpress-mailer-dsn](/?search=https%3A%2F%2Fgithub.com%2FPopArtDesign%2Fwordpress-mailer-dsn)Wordpress-muplugin[Mail &amp; Notifications](/categories/mail)

voronkovich/wordpress-mailer-dsn
================================

WordPress plugin to configure wp\_mail() via MAILER\_DSN environment variable.

v1.0.1(1y ago)33181MITPHP

Since Feb 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PopArtDesign/wordpress-mailer-dsn)[ Packagist](https://packagist.org/packages/voronkovich/wordpress-mailer-dsn)[ Docs](https://github.com/PopArtDesign/wordpress-mailer-dsn)[ RSS](/packages/voronkovich-wordpress-mailer-dsn/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

WordPress Mailer DSN (Data Source Name)
=======================================

[](#wordpress-mailer-dsn-data-source-name)

[![CI](https://github.com/PopArtDesign/wordpress-mailer-dsn/actions/workflows/ci.yml/badge.svg)](https://github.com/PopArtDesign/wordpress-mailer-dsn/actions/workflows/ci.yml)

[WordPress](https://wordpress.org/) plugin to configure [wp\_mail()](https://developer.wordpress.org/reference/functions/wp_mail/) via `MAILER_DSN` environment variable.

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

[](#installation)

Use the [Composer](https://getcomposer.org/):

```
composer require popartdesign/wordpress-mailer-dsn
```

Don't forget to activate the plugin, if you don't use the `mu-plugins` directory.

Define (in your `.env` file for example) the `MAILER_DSN` variable like this:

```
MAILER_DSN='mail://localhost'
```

Configuraton
------------

[](#configuraton)

Supported protocols:

- `mail`
- `sendmail`
- `qmail`
- `smtp`
- `smtps`

Additional configuration could be applied via query string:

```
MAILER_DSN='mail://localhost?XMailer=SuperMailer&FromName=CoolSite'
```

[PHPMailer](https://github.com/PHPMailer/PHPMailer) configured by public properties, so you can use any of them. All allowed options could be found at [PHPMailer Docs](https://phpmailer.github.io/PHPMailer/classes/PHPMailer-PHPMailer-PHPMailer.html#toc-properties).

Examples
--------

[](#examples)

### Sendmail

[](#sendmail)

```
MAILER_DSN='sendmail://localhost?Sendmail=/usr/sbin/sendmail%20-oi%20-t'
```

### SMTP

[](#smtp)

```
MAILER_DSN='smtp://user:password@localhost?SMTPDebug=3&Timeout=1000'
```

### Gmail

[](#gmail)

```
MAILER_DSN='smtps://user@gmail.com:password@smtp.gmail.com:587'
```

Advanced
--------

[](#advanced)

Sometimes it's not convinient to configure all options by the only one `MAILER_DSN` variable. For example, if you want to configure [DKIM](https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail), you will end with very long unreadable DSN string. In this cases you can use one of `MAILER_*` variables:

- `MAILER_DEBUG`
- `MAILER_DEBUG_OUTPUT`
- `MAILER_FROM`
- `MAILER_FROM_NAME`
- `MAILER_SENDER`
- `MAILER_DKIM_PRIVATE`
- `MAILER_DKIM_PASSPHRASE`
- `MAILER_DKIM_SELECTOR`
- `MAILER_DKIM_IDENTITY`
- `MAILER_DKIM_DOMAIN`
- and etc.

See source code for all available vars.

License
-------

[](#license)

Copyright (c) Voronkovich Oleg. Distributed under the [MIT](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.3% 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 ~57 days

Recently: every ~123 days

Total

11

Last Release

609d ago

Major Versions

v0.0.9 → v1.0.02023-05-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fff9274f2cfbdf52e73aae6f83e8f17421872b2154bb814be3c4b7838816468?d=identicon)[voronkovich](/maintainers/voronkovich)

---

Top Contributors

[![voronkovich](https://avatars.githubusercontent.com/u/2299535?v=4)](https://github.com/voronkovich "voronkovich (41 commits)")[![nlemoine](https://avatars.githubusercontent.com/u/2526939?v=4)](https://github.com/nlemoine "nlemoine (1 commits)")[![ThomasLandauer](https://avatars.githubusercontent.com/u/1054469?v=4)](https://github.com/ThomasLandauer "ThomasLandauer (1 commits)")

---

Tags

12-factorphpmailerwordpress-bedrockwordpress-developmentwordpress-pluginpluginwordpressphpmailer

### Embed Badge

![Health badge](/badges/voronkovich-wordpress-mailer-dsn/health.svg)

```
[![Health](https://phpackages.com/badges/voronkovich-wordpress-mailer-dsn/health.svg)](https://phpackages.com/packages/voronkovich-wordpress-mailer-dsn)
```

###  Alternatives

[itinerisltd/wp-phpmailer

WP PHPMailer provides a clean and simple way to configure WordPress-bundled PHPMailer library, allowing you to quickly get started sending mail through a local or cloud based service of your choice.

6231.6k](/packages/itinerisltd-wp-phpmailer)[rmrevin/yii2-postman

Mail module for Yii2.

2612.3k](/packages/rmrevin-yii2-postman)

PHPackages © 2026

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