diff options
author | Yehuda Hassine <yehuda@myinbox.in> | 2019-05-15 09:14:23 +0300 |
---|---|---|
committer | Yehuda Hassine <yehuda@myinbox.in> | 2019-05-15 09:14:23 +0300 |
commit | 71c82c669fd430f3d8a40839a10eaa231081bbea (patch) | |
tree | 10ef9f34e96bb07aea214d3b04e9f5ea456eb8f2 /Postman/Phpmailer/PostsmtpMailer.php | |
parent | 038dc3839338d5384d263f2488a6f67adf99ec7c (diff) | |
download | Post-SMTP-71c82c669fd430f3d8a40839a10eaa231081bbea.zip |
fix attachments fetch
Diffstat (limited to 'Postman/Phpmailer/PostsmtpMailer.php')
-rw-r--r-- | Postman/Phpmailer/PostsmtpMailer.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Postman/Phpmailer/PostsmtpMailer.php b/Postman/Phpmailer/PostsmtpMailer.php index f3e0479..9eee0a7 100644 --- a/Postman/Phpmailer/PostsmtpMailer.php +++ b/Postman/Phpmailer/PostsmtpMailer.php @@ -73,6 +73,17 @@ class PostsmtpMailer extends PHPMailer { } + public function getAttachments() { + $attachments = parent::getAttachments(); + + $data = array(); + foreach ( $attachments as $attachment ) { + $data[] = $attachment[0]; + } + + return $data; + } + private function getHeaders() { $headers = array(); foreach ( $this->getCustomHeaders() as $header ) { |