summaryrefslogtreecommitdiff
path: root/Postman/Phpmailer/PostsmtpMailer.php
diff options
context:
space:
mode:
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 ) {