From 3b09881aa5646326c5a01263f8acc13a1f9c106f Mon Sep 17 00:00:00 2001 From: noniagriconomie Date: Fri, 21 Feb 2020 17:37:59 +0100 Subject: [PATCH] Add notice log when email recipients are not defined --- src/Symfony/Component/Mailer/Transport/AbstractTransport.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Component/Mailer/Transport/AbstractTransport.php b/src/Symfony/Component/Mailer/Transport/AbstractTransport.php index cf21c724b3137..4571508da8935 100644 --- a/src/Symfony/Component/Mailer/Transport/AbstractTransport.php +++ b/src/Symfony/Component/Mailer/Transport/AbstractTransport.php @@ -65,6 +65,8 @@ public function send(RawMessage $message, Envelope $envelope = null): ?SentMessa } if (!$envelope->getRecipients()) { + $this->getLogger()->notice('There are no recipients in the mailer envelope. Nothing was sent.'); + return null; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy