Skip to content

Commit

Permalink
Merge pull request #6 from s-kerdel/fix-attachments
Browse files Browse the repository at this point in the history
Fix #5: Resolve invalid validation of attachments.
  • Loading branch information
JamesDPC authored Nov 16, 2021
2 parents 2f58732 + e2a6fd4 commit 505fb15
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Email/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,7 @@ public function send($email)
$connector = $email->getConnector();

// process attachments
if (!empty($attachments)) {
$attachments = $this->prepareAttachments($message->getChildren());
} else {
// eensure empty array
$attachments = [];
}
$attachments = $this->prepareAttachments($message->getChildren());

// process headers
$headers = $message->getHeaders();
Expand Down

0 comments on commit 505fb15

Please sign in to comment.