Wrong return value of deliver function in notifier plugin Email.php

Created on 5 June 2023, about 1 year ago
Updated 3 November 2023, 8 months ago

Problem/Motivation

We wanted to use the return value from \Drupal\message_notify\Plugin\Notifier\Email::deliver to indicate if a mail got send or not. Even when we corrupted the mail server settings and the mail doesn't got send we received a TRUE. The reason is that the return value is set by the isset() function and even if the value in $result['result'] is false isset() will return true.

Proposed resolution

Return the value from $result['result'] when set or FALSE when not.

πŸ› Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Atropoides Hamburg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024