Raised from here and comments below.
As stated perfectly by @jungle in the linked issue:
FYI, the config can be overridden in settings.php.
All are able to be overridden.
$config['smtp.settings']['smtp_on'] = TRUE;
$config['smtp.settings']['smtp_host'] = 'exmple.com';
$config['smtp.settings']['smtp_port'] = '465';
$config['smtp.settings']['smtp_protocol'] = 'ssl';
$config['smtp.settings']['smtp_username'] = 'dummy@example.com';
$config['smtp.settings']['smtp_password'] = 'pAssword';
It's possible thatOn local, use the credentials of stmp1@example.com.
On CI, use the credentials of stmp2@example.com.
On Prod, use the credentials of stmp0@example.com.
In code, it's dummy@example.com.
So I recommended to create a task for adding this info as help text to let users know about this possibilities, since not all users are aware of it yet.
Issue fork smtp-3134247
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dqdComment #3
tr commentedComment #4
gngn commentedI think this should also mention the info stated in #3012631: smtp_on option still sends mail on 8.x-1.0-beta4:
to disable SMTP via settings.local it is not enough to overwrite 'smtp.settings smtp_on'
but you also need to overwrite 'system.mail interface.default':
Comment #9
bluegeek9 commentedI created a help topic
Comment #11
bluegeek9 commented