Problem/Motivation

When working in a development environment, it would be helpful to have a way to force all outgoing messages to go to a single developer email address as it does with the D7 version.

Steps to reproduce

On the admin page a field should be available to force all mail to go to a certain address. This should also be available as a config setting that could be added to a local settings.php file.

Proposed resolution

Replicate the essential logic from the D7 version to add the value to the module's configs.

Remaining tasks

User interface changes

Add the option on the admin config page that resembles the option on D7.

API changes

Data model changes

Comments

Chris Dart created an issue. See original summary.

tr’s picture

This use case can be handled in many ways. See https://www.drupal.org/docs/develop/local-server-setup/managing-mail-han...

Likewise, core Drupal provides a mechanism for overriding ANY config variable, from within settings.php. The is nothing that SMTP needs to do to make this possible.

And if you need a different set of configuration settings on your development server vs. your production server, you should be using something like config_split.

SMTP should not be implementing features that are better handled by other contributed modules.

bluegeek9’s picture

Status: Active » Closed (outdated)

The module has a setting to reroute all emails to a single address.

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

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

Maintainers, please credit people who helped resolve this issue.

bluegeek9’s picture

Status: Closed (outdated) » 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.

Status: Fixed » Closed (fixed)

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