summaryrefslogtreecommitdiff
path: root/Postman/Phpmailer/PostsmtpMailer.php
diff options
context:
space:
mode:
authorYehuda Hassine <yehuda@myinbox.in>2019-05-15 09:14:23 +0300
committerYehuda Hassine <yehuda@myinbox.in>2019-05-15 09:14:23 +0300
commit71c82c669fd430f3d8a40839a10eaa231081bbea (patch)
tree10ef9f34e96bb07aea214d3b04e9f5ea456eb8f2 /Postman/Phpmailer/PostsmtpMailer.php
parent038dc3839338d5384d263f2488a6f67adf99ec7c (diff)
downloadPost-SMTP-71c82c669fd430f3d8a40839a10eaa231081bbea.zip
fix attachments fetch
Diffstat (limited to 'Postman/Phpmailer/PostsmtpMailer.php')
-rw-r--r--Postman/Phpmailer/PostsmtpMailer.php11
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 ) {