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 that

On 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

Command icon 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

diqidoq created an issue. See original summary.

dqd’s picture

Issue summary: View changes
tr’s picture

Priority: Minor » Normal
gngn’s picture

I 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'

$config['smtp.settings']['smtp_on'] = FALSE;

but you also need to overwrite 'system.mail interface.default':

$config['system.mail']['interface']['default'] = 'php_mail';

bluegeek9 made their first commit to this issue’s fork.

bluegeek9’s picture

Status: Active » Needs review

I created a help topic

  • bluegeek9 committed 344dd2f7 on 8.x-1.x
    [#3134247] feat: Add help topic to inform user about available config...
bluegeek9’s picture

Status: Needs review » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging SMTP as a favorite on the project page to help others discover it and show your support.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.