You have several options for attaching a document to email using quick mail.
From the symfony doc:
$message = Swift_Message::newInstance() ->setFrom(' from@example.com ') ->setTo(' to@example.com ') ->setSubject('Subject') ->setBody('Body') ->attach(Swift_Attachment::fromPath('/path/to/a/file.zip')) ; $this->getMailer()->send($message);
user4615198
source share