Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15dbe4b

Browse files
committed
[Mailer] fixed error that is masked by another error
1 parent8f1d9d2 commit15dbe4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ public function send(RawMessage $message, SmtpEnvelope $envelope = null): ?SentM
114114
try {
115115
$message =parent::send($message,$envelope);
116116
}catch (TransportExceptionInterface$e) {
117-
$this->executeCommand("RSET\r\n", [250]);
117+
try {
118+
$this->executeCommand("RSET\r\n", [250]);
119+
}catch (TransportExceptionInterface$_) {
120+
// ignore this exception as it probably means that the server error was final
121+
}
118122

119123
throw$e;
120124
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp