Download the PHP package popartdesign/wordpress-mailer-dsn without Composer
On this page you can find all versions of the php package popartdesign/wordpress-mailer-dsn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download popartdesign/wordpress-mailer-dsn
More information about popartdesign/wordpress-mailer-dsn
Files in popartdesign/wordpress-mailer-dsn
Package wordpress-mailer-dsn
Short Description WordPress plugin to configure wp_mail() via MAILER_DSN environment variable.
License MIT
Homepage https://github.com/PopArtDesign/wordpress-mailer-dsn
Informations about the package wordpress-mailer-dsn
WordPress Mailer DSN (Data Source Name)
WordPress plugin to configure wp_mail() via MAILER_DSN 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 MAILER_DSN variable like this:
Configuraton
Supported protocols:
mailsendmailqmailsmtpsmtps
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 MAILER_DSN 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:
MAILER_DEBUGMAILER_DEBUG_OUTPUTMAILER_FROMMAILER_FROM_NAMEMAILER_SENDERMAILER_DKIM_PRIVATEMAILER_DKIM_PASSPHRASEMAILER_DKIM_SELECTORMAILER_DKIM_IDENTITYMAILER_DKIM_DOMAIN- and etc.
See source code for all available vars.
License
Copyright (c) Voronkovich Oleg. Distributed under the MIT.