We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aeabec commit 9099f86Copy full SHA for 9099f86
system/Email/Email.php
@@ -2227,7 +2227,7 @@ protected function mimeTypes($ext = '')
2227
2228
public function __destruct()
2229
{
2230
- if ($this->SMTPConnect !== null) {
+ if (is_resource($this->SMTPConnect)) {
2231
try {
2232
$this->sendCommand('quit');
2233
} catch (ErrorException $e) {
user_guide_src/source/changelogs/v4.6.3.rst
@@ -31,6 +31,7 @@ Bugs Fixed
31
**********
32
33
- **Email:** Fixed a bug with CID check when building email attachments.
34
+- **Email:** Fixed SMTP connection resource validation in the class destructor.
35
36
See the repo's
37
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_
0 commit comments