Mailer DSN
WordPress plugin to configure wp_mail() via MAILER_DSN environment variable
by PopArtDesign <info@popartdesign.ru> · github.com/popartdesign/wordpress-mailer-dsn · website
★ 3stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/popartdesign/wordpress-mailer-dsn/archive/refs/heads/main.zipFrom the readme
WordPress Mailer DSN (Data Source Name)
WordPress plugin to configure wpmail() via MAILERDSN environment variable.
Installation
Use the Composer:
Don't forget to activate the plugin, if you don't use the mu-plugins directory.
Define (in your .env file for example) the MAILERDSN variable like this:
Configuraton
Supported protocols:
- mail
- sendmail
- qmail
- smtp
- smtps
Additional configuration could be applied via query string:
PHPMailer configured by public properties, so you can use any of them. All allowed options could be found at PHPMailer Docs.
Examples
Sendmail
SMTP
Gmail
Advanced
Sometimes it's not convinient to configure all options by the only one MAILERDSN variable. For example, if you want to configure DKIM, you will end with very long unreadable DSN string. In this cases you can use one of MAILER variables:
- MAILERDEBUG
- MAILERDEBUGOUTPUT
- MAILERFROM
- MAILERFROMNAME
- MAILERSENDER
- MAILERDKIMPRIVATE
- MAILERDKIMPASSPHRASE
- MAILERDKIMSELECTOR
- MAILERDKIMIDENTITY
- MAILERDKIMDOMAIN
- and etc.
See source code for all available vars.
License
Copyright (c) Voronkovich Oleg. Distributed under the MIT.
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0.1 | Sep 10, 2024 |
| v1.0.0 | May 9, 2023 |
| v0.0.9 | May 7, 2023 |
| v0.0.8 | May 6, 2023 |
| v0.0.7 | May 6, 2023 |
| v0.0.6 | Mar 12, 2023 |
| v0.0.5 | Feb 27, 2023 |
| v0.0.4 | Feb 20, 2023 |
| v0.0.3 | Feb 20, 2023 |
| v0.0.2 | Feb 19, 2023 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.