Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
symfony_mailer_lite
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
symfony_mailer_lite
Commits
96c6c99e
Commit
96c6c99e
authored
1 year ago
by
Primoz Hmeljak
Committed by
Wayne Eaker
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3396902
by Primsi: SymfonyMailer::mail should handle other exception types
parent
2957e5df
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Mail/SymfonyMailer.php
+8
-0
8 additions, 0 deletions
src/Plugin/Mail/SymfonyMailer.php
with
8 additions
and
0 deletions
src/Plugin/Mail/SymfonyMailer.php
+
8
−
0
View file @
96c6c99e
...
...
@@ -374,6 +374,14 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface {
the following headers:<br /><br />@headers'
,
[
'@exception_message'
=>
$e
->
getMessage
(),
'@headers'
=>
$headers
]);
}
catch
(
\Exception
$e
)
{
$this
->
logger
->
error
(
'An attempt to send an e-mail message failed, and the following error
message was returned : @exception_message'
,
[
'@exception_message'
=>
$e
->
getMessage
(),
]
);
}
return
FALSE
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment