8000 Ensure TransportExceptionInterface populates stream debug data · priyadi/symfony@32a7d14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32a7d14

Browse files
committed
Ensure TransportExceptionInterface populates stream debug data
1 parent 265b5d0 commit 32a7d14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ protected function doSend(SentMessage $message): void
205205
$this->ping();
206206
}
207207

208-
if (!$this->started) {
209-
$this->start();
210-
}
211-
212208
try {
209+
if (!$this->started) {
210+
$this->start();
211+
}
212+
213213
$envelope = $message->getEnvelope();
214214
$this->doMailFromCommand($envelope->getSender()->getEncodedAddress());
215215
foreach ($envelope->getRecipients() as $recipient) {

0 commit comments

Comments
 (0)
0