Project

General

Profile

Actions

Bug #100084

closed

Only send test email if sender is configured

Added by Sybille Peters over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2023-03-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If the sender email is not configured via $GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'], a default is used ().

The problem with this behaviour is:

- Not setting the value is incomplete configuration. We should make the
user aware of this. The point of sending a test mail is to test the
configuration as well.
- Emails with a sender adress like '' might get
rejected by the email server but the user gets no error message,
so is kept in the dark.
- Notifications from the mail server cannot be sent back.

I think it would be better to display an error message, if the defaultMailFromAddress is not configured.

Also the email was not checked with GeneralUtility::validEmail().

Reproduce

1. SEt $GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] to empty
2. Send a test email via "Enviroment" => "Test Mail Setup". A sender Adress "no-reply @ example.com" is used

Actions

Also available in: Atom PDF