magenerds/smtp 2.0.0

Type

library

License

OSL-3.0

Requires

None

Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Magenerds_Smtp

Configuration

There are several ways to configure the SMTP module for your instance and your environment. You can use Magento's setup:config:set command and/or set the options within the setup:install command. However, in each case Magento will persist the configuration data in app/etc/env.php. You can edit this file manually and deploy or mount it to your target environment.

Command options

for setup:config:set and setup:install

 --smtp-host       External SMTP host for mail transport
 --smtp-auth       Authentification method for SMTP transport
 --smtp-tls        Use TLS for SMTP transport
 --smtp-port       SMTP port
 --smtp-username   SMTP usename
 --smtp-password   SMTP password

Use bin/magento setup:config:set --help or bin/magento setup:install --help for further information.

(optional) env.php

'smtp' => [
    'host' => 'mail.server.com',
    'auth' => 'login',
    'tls' => '',
    'port' => '587',
    'username' => 'mail-user',
    'password' => 'P4ssW0rD',
],