Skip to content

Commit

Permalink
Message: added getAttachments() [Closes #11]
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Ožana authored and dg committed Jun 17, 2015
1 parent 917685f commit 3bad28f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Mail/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,16 @@ public function addAttachment($file, $content = NULL, $contentType = NULL)
}


/**
* Gets all email attachments.
* @return MimePart[]
*/
public function getAttachments()
{
return $this->attachments;
}


/**
* Creates file MIME part.
* @return MimePart
Expand Down

0 comments on commit 3bad28f

Please sign in to comment.