user2840329
user2840329

Reputation: 21

Swiftmailer - get attachment content

Is there a method to get the content of the Attachment to a message?

I have tried $message->getBody() to no avail.

Upvotes: 2

Views: 805

Answers (1)

user1777136
user1777136

Reputation: 1756

You can use $message->toString() which contains the contents of the attachments.

Upvotes: 1

Related Questions