Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to force test emails to always go to the same address #1068

Open
wants to merge 1 commit into
base: release-3.7.0
Choose a base branch
from

Conversation

michield
Copy link
Member

Description

add TEST_EMAIL_ALWAYS_TO constant to force test emails to always go to the same email address

Related Issue

Screenshots (if appropriate):

@michield michield added the 3.7.x PRs for 3.7 label Jan 26, 2025
@@ -461,7 +461,11 @@
include 'sendemaillib.php';

// OK, let's get to sending!
$emailaddresses = explode(',', $messagedata['testtarget']);
if (defined('TEST_EMAIL_ALWAYS_TO') && TEST_EMAIL_ALWAYS_TO) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that this test of TEST_EMAIL_ALWAYS_TO is necessary. $messagedata['testtarget'] will contain the value of TEST_EMAIL_ALWAYS_TO when that has been set otherwise will contain the entered value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7.x PRs for 3.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants